QProcess: skip processesInMultipleThreads test on emulators

The test has timed out when run on ARM in qemu. We start more threads
than the ideal count, which is likely too much for the emulator when not
running the native architecture.

Pick-to: 6.4
Change-Id: I42e11945070646551e77c10618df762a4bffc8ba
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Volker Hilsheimer 2022-07-13 11:40:38 +02:00
parent 4ae85ae441
commit 826a98cff1
2 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ qt_internal_add_test(tst_qprocess
PUBLIC_LIBRARIES
Qt::CorePrivate
Qt::Network
Qt::TestPrivate
)
## Build assorted sub-programs called from the test:

View File

@ -23,6 +23,8 @@
# include <private/qcore_unix_p.h>
#endif
#include <QtTest/private/qemulationdetector_p.h>
#include <stdlib.h>
typedef void (QProcess::*QProcessErrorSignal)(QProcess::ProcessError);
@ -1223,6 +1225,9 @@ void tst_QProcess::processInAThread()
void tst_QProcess::processesInMultipleThreads()
{
if (QTestPrivate::isRunningArmOnX86())
QSKIP("Test is too slow to run on emulator");
#if defined(Q_OS_QNX)
QSKIP("QNX: Large amount of threads is unstable and do not finish in given time");
#endif