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.

Change-Id: I42e11945070646551e77c10618df762a4bffc8ba
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 826a98cff1cd92d8b87ddd0df7f9a5b0828ac000)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Volker Hilsheimer 2022-07-13 11:40:38 +02:00 committed by Qt Cherry-pick Bot
parent 073b9f856e
commit 3a7be41607
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