From ddcfc5cd767001aaeeb532ac8f7b10ad9cf891d8 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Thu, 11 Feb 2010 11:12:32 +1000 Subject: Fixed qmldebug* tests crashing. Tests would crash with `QThread: Destroyed while thread is still running' one in a billion runs, since wait() was not called on the test thread. Reviewed-by: leo --- tests/auto/declarative/shared/debugutil.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/declarative/shared/debugutil.cpp b/tests/auto/declarative/shared/debugutil.cpp index 936adda..98243d5 100644 --- a/tests/auto/declarative/shared/debugutil.cpp +++ b/tests/auto/declarative/shared/debugutil.cpp @@ -169,6 +169,8 @@ int QmlDebugTest::runTests(QmlTestFactory *factory, const QList &qml loop.exec(); + thread.wait(); + return data.exitCode; } -- cgit v0.12