Temporarily skip tst_qtcuncurrentrun::pollForIsFinished in emulator

This test causes instability in the CI, but so far nobody could
reproduce it outside of that specific CI environment. Skip it for now,
and investigate the root cause later.

Pick-to: 6.2 6.4
Task-number: QTBUG-106906
Change-Id: Idbbc560236ac475fcb4fdd5980397393f7a95474
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Fabian Kosmale 2022-11-30 09:41:55 +01:00
parent ae7985b498
commit fbf55619da
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,7 @@ qt_internal_add_test(tst_qtconcurrentrun
tst_qtconcurrentrun.cpp
LIBRARIES
Qt::Concurrent
Qt::TestPrivate
)
## Scopes:

View File

@ -10,6 +10,8 @@
#include <QTimer>
#include <QFutureSynchronizer>
#include <QtTest/private/qemulationdetector_p.h>
using namespace QtConcurrent;
class tst_QtConcurrentRun: public QObject
@ -699,6 +701,9 @@ 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);