From 781542f36e0ae12a238fe76c63f1613c662530a1 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 14 Nov 2011 13:46:13 +0100 Subject: [PATCH] Debugger: Print debuggee output for failing v8 autotests Change-Id: I80f963042f0d2e30f5a715fca3b60a66751efbb4 Reviewed-by: Aurindam Jana --- .../debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.7.4