aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/debugger/shared
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-11-30 17:16:42 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-08 00:03:43 +0100
commit0b611725b095760f880d5970908989d7ea26f60a (patch)
treeecb5332619eb83718ec656566d54cd670531e4c1 /tests/auto/declarative/debugger/shared
parent1c3a4e6f824289cd82aa1c4b0039b2e80c122d96 (diff)
Debugger: Run js autotests with QML_DISABLE_OPTIMIZER
That's how you'd usually debug your app too. Change-Id: I5acbf2fea0db3cb8593d690638f90ec849cf316a Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'tests/auto/declarative/debugger/shared')
-rw-r--r--tests/auto/declarative/debugger/shared/debugutil.cpp6
-rw-r--r--tests/auto/declarative/debugger/shared/debugutil_p.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/declarative/debugger/shared/debugutil.cpp b/tests/auto/declarative/debugger/shared/debugutil.cpp
index 04770a924b..c259ac953c 100644
--- a/tests/auto/declarative/debugger/shared/debugutil.cpp
+++ b/tests/auto/declarative/debugger/shared/debugutil.cpp
@@ -122,6 +122,7 @@ QDeclarativeDebugProcess::~QDeclarativeDebugProcess()
void QDeclarativeDebugProcess::start(const QStringList &arguments)
{
m_mutex.lock();
+ m_process.setEnvironment(m_environment);
m_process.start(m_executable, arguments);
m_process.waitForStarted();
m_timer.start();
@@ -147,6 +148,11 @@ bool QDeclarativeDebugProcess::waitForSessionStart()
return m_started;
}
+void QDeclarativeDebugProcess::setEnvironment(const QStringList &environment)
+{
+ m_environment = environment;
+}
+
QString QDeclarativeDebugProcess::output() const
{
return m_output;
diff --git a/tests/auto/declarative/debugger/shared/debugutil_p.h b/tests/auto/declarative/debugger/shared/debugutil_p.h
index cb0e10c231..4d2ee160d5 100644
--- a/tests/auto/declarative/debugger/shared/debugutil_p.h
+++ b/tests/auto/declarative/debugger/shared/debugutil_p.h
@@ -101,6 +101,8 @@ public:
QDeclarativeDebugProcess(const QString &executable);
~QDeclarativeDebugProcess();
+ void setEnvironment(const QStringList &environment);
+
void start(const QStringList &arguments);
bool waitForSessionStart();
@@ -119,6 +121,7 @@ private:
QEventLoop m_eventLoop;
QMutex m_mutex;
bool m_started;
+ QStringList m_environment;
};
#endif // DEBUGUTIL_H