QProcess on QNX: only expect failure if there is one

The QProcessunixProcessParameters sometimes fails in CI with an XPASS.
Unclear under what conditions QNX behaves correctly, so accept that it
is unpredictable and only expect a failure when a failure is imminent.

Amends f9c87cfd44.

Change-Id: Icf70861343747e6323c7953a2462b7bbc46549b3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Volker Hilsheimer 2023-07-08 16:18:19 +02:00
parent 7a732413ff
commit 8f1df9aaa8
1 changed files with 4 additions and 2 deletions

View File

@ -1787,10 +1787,12 @@ void tst_QProcess::unixProcessParameters()
QVERIFY2(process.waitForStarted(5000), qPrintable(process.errorString()));
QVERIFY(process.waitForFinished(5000));
const QString stdErr = process.readAllStandardError();
#ifdef Q_OS_QNX
QEXPECT_FAIL("ignore-sigpipe", "QTBUG-114720: flag is taking no effect", Abort);
if (stdErr != QString())
QEXPECT_FAIL("ignore-sigpipe", "QTBUG-114720: flag is sometimes ignored", Abort);
#endif
QCOMPARE(process.readAllStandardError(), QString());
QCOMPARE(stdErr, QString());
QCOMPARE(process.readAll(), QString());
QCOMPARE(process.exitCode(), 0);
QCOMPARE(process.exitStatus(), QProcess::NormalExit);