summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@qt.io>2022-12-18 16:11:05 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-12-19 15:31:10 +0000
commit413798cc01a3a2499c1f7683acdb68fd3466aae1 (patch)
treee742662fd8f3c75134f93ff066958c7003e31889
parentf7559904d0e8f7966e726fd04801cb58a1bd4a2d (diff)
Skip tst_qconcurrentrun completely if running under an emulator
Task-number: QTBUG-106906 Pick-to: 6.5 6.4 Change-Id: I1836f5be42528c71470c2cd6509f7125feb47691 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--tests/auto/concurrent/qtconcurrentrun/tst_qtconcurrentrun.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/auto/concurrent/qtconcurrentrun/tst_qtconcurrentrun.cpp b/tests/auto/concurrent/qtconcurrentrun/tst_qtconcurrentrun.cpp
index f5925d9583..179cf2b006 100644
--- a/tests/auto/concurrent/qtconcurrentrun/tst_qtconcurrentrun.cpp
+++ b/tests/auto/concurrent/qtconcurrentrun/tst_qtconcurrentrun.cpp
@@ -18,6 +18,7 @@ class tst_QtConcurrentRun: public QObject
{
Q_OBJECT
private slots:
+ void initTestCase();
void runLightFunction();
void runHeavyFunction();
void returnValue();
@@ -85,6 +86,13 @@ void heavy()
qDebug("done function");
}
+void tst_QtConcurrentRun::initTestCase()
+{
+ // proxy check for QEMU; catches slightly more though
+ if (QTestPrivate::isRunningArmOnX86())
+ QSKIP("Runs into spurious crashes on QEMU -- QTBUG-106906");
+}
+
void tst_QtConcurrentRun::runLightFunction()
{
qDebug("starting function");
@@ -701,9 +709,6 @@ static void runFunction()
void tst_QtConcurrentRun::pollForIsFinished()
{
- // proxy check for QEMU; catches slightyl more though
- if (QTestPrivate::isRunningArmOnX86())
- QSKIP("Runs into spurious crashes on QEMU -- QTBUG-106906");
const int numThreads = std::max(4, 2 * QThread::idealThreadCount());
QThreadPool::globalInstance()->setMaxThreadCount(numThreads);