Skip tst_QProcess::processesInMultipleThreads under QEMU

tst_QProcess hangs sometimes in QEMU. Based on my experiments in a debug VM the
offending test seems to be processesInMultipleThreads(), since that was were I
was able to reproduce the hanging in.

Since the whole test executable hangs, blacklisting is not enough, so skip the
test.

Task-number: QTBUG-67760
Change-Id: I34f8852be955a8612deac22b369f68d79a139d11
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
bb10
Kari Oikarinen 2018-04-17 15:12:02 +03:00
parent bb6ba17019
commit 2fc274ddb5
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,8 @@ CONFIG += testcase
CONFIG -= debug_and_release_target
QT = core-private testlib network
SOURCES = ../tst_qprocess.cpp
INCLUDEPATH += ../../../../../shared
HEADERS += ../../../../../shared/emulationdetector.h
TARGET = ../tst_qprocess

View File

@ -27,6 +27,7 @@
**
****************************************************************************/
#include <emulationdetector.h>
#include <QtTest/QtTest>
#include <QtCore/QProcess>
@ -1165,6 +1166,8 @@ void tst_QProcess::processInAThread()
void tst_QProcess::processesInMultipleThreads()
{
if (EmulationDetector::isRunningArmOnX86())
QSKIP("Flakily hangs in QEMU. QTBUG-67760");
for (int i = 0; i < 10; ++i) {
// run from 1 to 10 threads, but run at least some tests
// with more threads than the ideal