From: Kai Koehne Date: Thu, 1 Dec 2011 14:54:46 +0000 (+0100) Subject: Debugger autest: Don't show debugee output for expected failures X-Git-Tag: qt-v5.0.0-alpha1~957 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d3f75003609edfebd058d00787bb4410e12de91;p=profile%2Fivi%2Fqtdeclarative.git Debugger autest: Don't show debugee output for expected failures Change-Id: Ifd068f8c680dcde7bf9c2e078e13eeee1bcba552 Reviewed-by: Aaron Kennedy --- diff --git a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp index 0646abb..105700e 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)