From 2fc274ddb50171b1ef9f7220848aa135a78b5bdb Mon Sep 17 00:00:00 2001 From: Kari Oikarinen Date: Tue, 17 Apr 2018 15:12:02 +0300 Subject: 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 Reviewed-by: Joerg Bornemann --- tests/auto/corelib/io/qprocess/test/test.pro | 2 ++ tests/auto/corelib/io/qprocess/tst_qprocess.cpp | 3 +++ 2 files changed, 5 insertions(+) (limited to 'tests/auto/corelib/io/qprocess') diff --git a/tests/auto/corelib/io/qprocess/test/test.pro b/tests/auto/corelib/io/qprocess/test/test.pro index 7d6a7973dc..63187c9668 100644 --- a/tests/auto/corelib/io/qprocess/test/test.pro +++ b/tests/auto/corelib/io/qprocess/test/test.pro @@ -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 diff --git a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp index 6b4d292fe3..e19653abf0 100644 --- a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp +++ b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp @@ -27,6 +27,7 @@ ** ****************************************************************************/ +#include #include #include @@ -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 -- cgit v1.2.3