diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2011-12-01 15:54:46 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-01 16:21:59 +0100 |
commit | 5d3f75003609edfebd058d00787bb4410e12de91 (patch) | |
tree | 1a79ad8820feaf1fc699f3094af9a28cf8a094f5 /tests | |
parent | 4aeda1c4ba20774662be27871c14bf56c383f22a (diff) |
Debugger autest: Don't show debugee output for expected failures
Change-Id: Ifd068f8c680dcde7bf9c2e078e13eeee1bcba552
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp index 0646abbcd3..105700eedc 100644 --- a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp +++ b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp @@ -137,7 +137,8 @@ const char *TIMER_QMLFILE = "timer.qml"; #define QVERIFY(statement) \ do {\ if (!QTest::qVerify((statement), #statement, "", __FILE__, __LINE__)) {\ - qDebug().nospace() << "\nDEBUGGEE OUTPUT:\n" << process->output();\ + if (QTest::currentTestFailed()) \ + qDebug().nospace() << "\nDEBUGGEE OUTPUT:\n" << process->output();\ return;\ }\ } while (0) |