Stabilize test.
authorMichael Brasser <michael.brasser@nokia.com>
Sun, 19 Feb 2012 23:38:56 +0000 (09:38 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 20 Feb 2012 04:06:06 +0000 (05:06 +0100)
Change-Id: I5b4c4298653186216e6e093ce3194cfde0cd51b9
Reviewed-by: Martin Jones <martin.jones@nokia.com>
tests/auto/declarative/debugger/qdebugmessageservice/tst_qdebugmessageservice.cpp

index bf5c139..07e744d 100644 (file)
@@ -208,8 +208,8 @@ void tst_QDebugMessageService::retrieveDebugOutput()
 
     int maxTries = 2;
     while ((m_client->logBuffer.size() < 2)
-           && (maxTries-- > 0))
-        QVERIFY(QDeclarativeDebugTest::waitForSignal(m_client, SIGNAL(debugOutput())));
+           || (maxTries-- > 0))
+        QDeclarativeDebugTest::waitForSignal(m_client, SIGNAL(debugOutput()), 1000);
 
     QVERIFY(m_client->logBuffer.size() >= 2);
 
@@ -223,8 +223,8 @@ void tst_QDebugMessageService::retrieveDebugOutputExtended()
 
     int maxTries = 2;
     while ((m_client->logBuffer.size() < 2)
-           && (maxTries-- > 0))
-        QDeclarativeDebugTest::waitForSignal(m_client, SIGNAL(debugOutput()));
+           || (maxTries-- > 0))
+        QDeclarativeDebugTest::waitForSignal(m_client, SIGNAL(debugOutput()), 1000);
 
     QVERIFY(m_client->logBuffer.size() >= 2);