From: Kai Koehne Date: Mon, 14 Nov 2011 12:46:13 +0000 (+0100) Subject: Debugger: Print debuggee output for failing v8 autotests X-Git-Tag: qt-v5.0.0-alpha1~1122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=781542f36e0ae12a238fe76c63f1613c662530a1;p=profile%2Fivi%2Fqtdeclarative.git Debugger: Print debuggee output for failing v8 autotests Change-Id: I80f963042f0d2e30f5a715fca3b60a66751efbb4 Reviewed-by: Aurindam Jana --- diff --git a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp index a81b681..ffeb822 100644 --- a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp +++ b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp @@ -131,6 +131,17 @@ const char *JSFILE = "test.js"; jsonVal.setProperty(SEQ,QJSValue(seq++)); \ jsonVal.setProperty(TYPE,REQUEST); + +#undef QVERIFY +#define QVERIFY(statement) \ +do {\ + if (!QTest::qVerify((statement), #statement, "", __FILE__, __LINE__)) {\ + qDebug().nospace() << "\nDEBUGGEE OUTPUT:\n" << process->output();\ + return;\ + }\ +} while (0) + + class QJSDebugClient; class tst_QDeclarativeDebugJS : public QObject