Fix QQuickCanvas test failure.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 19 Mar 2012 07:27:38 +0000 (17:27 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 07:30:23 +0000 (08:30 +0100)
Switch to a QTRY_COMPARE to allow a little more time processing the
event loop.

Change-Id: I4f14feb5cbc7d11654f6c9089baff4ae67d894db
Reviewed-by: Martin Jones <martin.jones@nokia.com>
tests/auto/quick/qquickcanvas/tst_qquickcanvas.cpp

index 3a27d17..7250504 100644 (file)
@@ -698,7 +698,7 @@ void tst_qquickcanvas::headless()
     canvas->show();
     QTest::qWaitForWindowShown(canvas);
 
-    QCOMPARE(initialized.size(), 1);
+    QTRY_COMPARE(initialized.size(), 1);
     QVERIFY(canvas->openglContext() != 0);
 
     // Verify that the visual output is the same