aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/debugger
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-11-14 13:46:13 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-16 16:56:20 +0100
commit781542f36e0ae12a238fe76c63f1613c662530a1 (patch)
tree462796d71acb6be1734b0274fcac44a208406520 /tests/auto/declarative/debugger
parentc2455d414cd91c2580cd80179b1e741ed2a1a17e (diff)
Debugger: Print debuggee output for failing v8 autotests
Change-Id: I80f963042f0d2e30f5a715fca3b60a66751efbb4 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'tests/auto/declarative/debugger')
-rw-r--r--tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp
index a81b68136b..ffeb822f99 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