diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2011-11-30 17:16:42 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-08 00:03:43 +0100 |
commit | 0b611725b095760f880d5970908989d7ea26f60a (patch) | |
tree | ecb5332619eb83718ec656566d54cd670531e4c1 /tests/auto/declarative/debugger/qdeclarativedebugjs | |
parent | 1c3a4e6f824289cd82aa1c4b0039b2e80c122d96 (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/qdeclarativedebugjs')
-rw-r--r-- | tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp index 8967b844df..aa50d64c9e 100644 --- a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp +++ b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp @@ -972,6 +972,9 @@ bool tst_QDeclarativeDebugJS::init(const QString &qmlFile, bool blockMode) process = new QDeclarativeDebugProcess(QLibraryInfo::location(QLibraryInfo::BinariesPath) + "/qmlscene"); client = new QJSDebugClient(connection); + QStringList systemEnvironment = QProcess::systemEnvironment(); + systemEnvironment << "QML_DISABLE_OPTIMIZER=1"; + process->setEnvironment(systemEnvironment); if (blockMode) process->start(QStringList() << QLatin1String(BLOCKMODE) << TESTDATA(qmlFile)); else |