Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix QQuickCanvas test failure.
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>
  • Loading branch information
Andrew den Exter authored and Qt by Nokia committed Mar 19, 2012
1 parent 6500e8c commit 6cb5901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/auto/quick/qquickcanvas/tst_qquickcanvas.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 6cb5901

Please sign in to comment.