From 5d3f75003609edfebd058d00787bb4410e12de91 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 1 Dec 2011 15:54:46 +0100 Subject: [PATCH] Debugger autest: Don't show debugee output for expected failures Change-Id: Ifd068f8c680dcde7bf9c2e078e13eeee1bcba552 Reviewed-by: Aaron Kennedy --- .../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 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) -- 1.7.2.5