aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2012-10-23 13:14:03 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-08 17:14:39 +0100
commitd617bbd31d2e2f1eb5609a82a71adad81ce3844f (patch)
tree98375ac82a9ecec0ec5dfe4dc1b04785e8c95f56 /tests/auto
parent84ab326a7b997cd8dbf1bd5ad9bb712a01c7e42e (diff)
When declarative debug tests fail in CI, confirm timeout as reason
Hope to correct errors like FAIL! : tst_QQmlInspector::reloadQml() 'QQmlDebugTest::waitForSignal( m_client, SIGNAL(responseReceived()))' returned FALSE. () Change-Id: Iebf29d4de0bc19396041565e5a4cd32561345235 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/debugger/shared/debugutil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/shared/debugutil.cpp b/tests/auto/qml/debugger/shared/debugutil.cpp
index df8042ca11..213888ecee 100644
--- a/tests/auto/qml/debugger/shared/debugutil.cpp
+++ b/tests/auto/qml/debugger/shared/debugutil.cpp
@@ -52,6 +52,8 @@ bool QQmlDebugTest::waitForSignal(QObject *receiver, const char *member, int tim
QObject::connect(receiver, member, &loop, SLOT(quit()));
timer.start(timeout);
loop.exec();
+ if (!timer.isActive())
+ qWarning("waitForSignal %s timed out after %d ms", member, timeout);
return timer.isActive();
}