From 635b329592f26d64eeb6212b6056249b15293dcf Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Thu, 18 Feb 2010 08:45:49 +1000 Subject: Provide a very generous timeout for QmlImageProvider test Because it runs in an idle thread, which you would expect to be quite slow under load. --- tests/auto/declarative/qmlimageprovider/tst_qmlimageprovider.cpp | 6 ++++-- 1 file 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 #include +// 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) -- cgit v0.12