Debugger autest: Don't show debugee output for expected failures
authorKai Koehne <kai.koehne@nokia.com>
Thu, 1 Dec 2011 14:54:46 +0000 (15:54 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Dec 2011 15:21:59 +0000 (16:21 +0100)
Change-Id: Ifd068f8c680dcde7bf9c2e078e13eeee1bcba552
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp

index 0646abb..105700e 100644 (file)
@@ -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)