summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2021-04-26 14:59:16 +0200
committerAndrei Golubev <andrei.golubev@qt.io>2021-04-27 14:12:34 +0200
commitc3d16e21265ebacca1018b31490b63f8738333a5 (patch)
treec832ea2d8eb73ead41f9d23ee2961e671fd4f02f /tests
parente6f7202e34f407a316d1c96a6b3a55f24dd068d8 (diff)
Skip tst_QUrl::testThreading() under QEMU
It usually fails the test with "corrupted size vs. prev_size" message coming from malloc() or some other memory allocation routine (which signals about memory corruption probably) Task-number: QTBUG-93176 Change-Id: I5e34971267c52c63cda2489bef5b09bed739f532 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 6d52d86b999088ec07e58c14197bddda043ef0aa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/io/qurl/CMakeLists.txt1
-rw-r--r--tests/auto/corelib/io/qurl/tst_qurl.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qurl/CMakeLists.txt b/tests/auto/corelib/io/qurl/CMakeLists.txt
index ce386c142c..b5a2ec0331 100644
--- a/tests/auto/corelib/io/qurl/CMakeLists.txt
+++ b/tests/auto/corelib/io/qurl/CMakeLists.txt
@@ -9,6 +9,7 @@ qt_internal_add_test(tst_qurl
tst_qurl.cpp
PUBLIC_LIBRARIES
Qt::Concurrent
+ Qt::TestPrivate
)
## Scopes:
diff --git a/tests/auto/corelib/io/qurl/tst_qurl.cpp b/tests/auto/corelib/io/qurl/tst_qurl.cpp
index 1ee5c9cd42..835dd1e573 100644
--- a/tests/auto/corelib/io/qurl/tst_qurl.cpp
+++ b/tests/auto/corelib/io/qurl/tst_qurl.cpp
@@ -38,6 +38,8 @@
#include <qfileinfo.h>
#include <qmap.h>
+#include <QtTest/private/qemulationdetector_p.h>
+
Q_DECLARE_METATYPE(QUrl::FormattingOptions)
class tst_QUrl : public QObject
@@ -4124,6 +4126,8 @@ void tst_QUrl::testThreadingHelper()
void tst_QUrl::testThreading()
{
+ if (QTestPrivate::isRunningArmOnX86())
+ QSKIP("This test fails in QEMU and looks like because of a data race, QTBUG-93176");
s_urlStorage = new UrlStorage;
QThreadPool::globalInstance()->setMaxThreadCount(100);
QFutureSynchronizer<void> sync;