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:
parent
4ae85ae441
commit
826a98cff1
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user