summaryrefslogtreecommitdiffstats
path: root/tests/auto/qvideowidget
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qvideowidget')
-rw-r--r--tests/auto/qvideowidget/tst_qvideowidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qvideowidget/tst_qvideowidget.cpp b/tests/auto/qvideowidget/tst_qvideowidget.cpp
index 32a4e7c..8a54789 100644
--- a/tests/auto/qvideowidget/tst_qvideowidget.cpp
+++ b/tests/auto/qvideowidget/tst_qvideowidget.cpp
@@ -1589,7 +1589,9 @@ void tst_QVideoWidget::paintRendererControl()
QCOMPARE(surface->isActive(), true);
QCOMPARE(surface->isReady(), false);
- QCoreApplication::processEvents(QEventLoop::AllEvents);
+ //wait up to 2 seconds for the frame to be presented
+ for (int i=0; i<200 && !surface->isReady(); i++)
+ QTest::qWait(10);
QCOMPARE(surface->isActive(), true);
QCOMPARE(surface->isReady(), true);