From a6acabb04c5872f258170dbe69304da72241fc74 Mon Sep 17 00:00:00 2001 From: Andreas Buhr Date: Wed, 9 Feb 2022 15:29:03 +0100 Subject: Activate tst_QFutureWatcher for Android tst_QFutureWatcher was deactivated for Android. This patch activates it. Fixes: QTBUG-88136 Change-Id: Iead82e22d73eb15c9ecd2756eb33925910bbffc0 Reviewed-by: Assam Boudjelthia Reviewed-by: Sona Kurazyan (cherry picked from commit 936771d9013b283e5d9a586e77ef1f67d1618509) --- tests/auto/corelib/thread/CMakeLists.txt | 2 +- tests/auto/corelib/thread/qfuturewatcher/tst_qfuturewatcher.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/corelib/thread/CMakeLists.txt b/tests/auto/corelib/thread/CMakeLists.txt index 08df798b0b..2ea5d23073 100644 --- a/tests/auto/corelib/thread/CMakeLists.txt +++ b/tests/auto/corelib/thread/CMakeLists.txt @@ -36,7 +36,7 @@ if(QT_FEATURE_thread) endif() # special case begin # QTBUG-87431 -if(TARGET Qt::Concurrent AND NOT ANDROID AND NOT INTEGRITY) +if(TARGET Qt::Concurrent AND NOT INTEGRITY) add_subdirectory(qfuturewatcher) endif() # special case end diff --git a/tests/auto/corelib/thread/qfuturewatcher/tst_qfuturewatcher.cpp b/tests/auto/corelib/thread/qfuturewatcher/tst_qfuturewatcher.cpp index 34068f4f51..4ba87b165f 100644 --- a/tests/auto/corelib/thread/qfuturewatcher/tst_qfuturewatcher.cpp +++ b/tests/auto/corelib/thread/qfuturewatcher/tst_qfuturewatcher.cpp @@ -525,7 +525,8 @@ void tst_QFutureWatcher::tooMuchProgress() QObject::connect(&f, SIGNAL(progressValueChanged(int)), &o, SLOT(registerProgress(int))); f.setFuture((new ProgressEmitterTask())->start()); - QTestEventLoop::instance().enterLoop(5); + // Android reports ca. 10k progressValueChanged per second + QTestEventLoop::instance().enterLoop(15); QVERIFY(!QTestEventLoop::instance().timeout()); QVERIFY(progressValues.contains(maxProgress)); } -- cgit v1.2.3