summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlimageprovider/tst_qmlimageprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlimageprovider/tst_qmlimageprovider.cpp')
-rw-r--r--tests/auto/declarative/qmlimageprovider/tst_qmlimageprovider.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmlimageprovider/tst_qmlimageprovider.cpp b/tests/auto/declarative/qmlimageprovider/tst_qmlimageprovider.cpp
index 475cb7a..d07558a 100644
--- a/tests/auto/declarative/qmlimageprovider/tst_qmlimageprovider.cpp
+++ b/tests/auto/declarative/qmlimageprovider/tst_qmlimageprovider.cpp
@@ -44,11 +44,13 @@
#include <QtDeclarative/qmlimageprovider.h>
#include <private/qmlgraphicsimage_p.h>
+// QmlImageProvider::request() is run in an idle thread where possible
+// Be generous in our timeout.
#define TRY_WAIT(expr) \
do { \
- for (int ii = 0; ii < 6; ++ii) { \
+ for (int ii = 0; ii < 10; ++ii) { \
if ((expr)) break; \
- QTest::qWait(50); \
+ QTest::qWait(100); \
} \
QVERIFY((expr)); \
} while (false)