summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2021-09-09 15:34:10 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2021-09-09 21:08:42 +0200
commitba8d1da4a971a6351318e86fc613f74843bb2c49 (patch)
treec98ec14f5cb87a8017dce439d8f27d1a71e6650d /tests
parent7b1254b00997b07aaf4daff35934c7c4c43971ca (diff)
Skip tst_QReadWriteLock::multipleReadersLoop on QEMU
The test is randomly failing in the CI on QEMU. Couldn't reproduce it on the actual armv7 hardware, so most likely it's not a Qt bug. Fixes: QTBUG-96103 Pick-to: 6.1 6.2 Change-Id: I60b7264c6ce44b3b327fdd0dbcede006717c65a6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/thread/qreadwritelock/CMakeLists.txt1
-rw-r--r--tests/auto/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/corelib/thread/qreadwritelock/CMakeLists.txt b/tests/auto/corelib/thread/qreadwritelock/CMakeLists.txt
index a99001425e..8852a31fa4 100644
--- a/tests/auto/corelib/thread/qreadwritelock/CMakeLists.txt
+++ b/tests/auto/corelib/thread/qreadwritelock/CMakeLists.txt
@@ -9,4 +9,5 @@ qt_internal_add_test(tst_qreadwritelock
tst_qreadwritelock.cpp
PUBLIC_LIBRARIES
Qt::CorePrivate
+ Qt::TestPrivate
)
diff --git a/tests/auto/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp b/tests/auto/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp
index 2f1839b1d9..f1468817ec 100644
--- a/tests/auto/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp
+++ b/tests/auto/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp
@@ -34,6 +34,7 @@
#include <qmutex.h>
#include <qthread.h>
#include <qwaitcondition.h>
+#include <private/qemulationdetector_p.h>
#include <private/qvolatile_p.h>
#ifdef Q_OS_UNIX
@@ -693,6 +694,9 @@ void tst_QReadWriteLock::multipleReadersBlockRelease()
*/
void tst_QReadWriteLock::multipleReadersLoop()
{
+ if (QTestPrivate::isRunningArmOnX86())
+ QSKIP("Flaky on QEMU, QTBUG-96103");
+
constexpr int time = 500;
constexpr int hold = 250;
constexpr int wait = 0;