tst_selftests: deduplicate the Unix/Linux conditions
Amends 118f2210c6279803b9a4103a796ce75e88f8beb2. That commit added #ifdef Q_OS_UNIX if (test == "assert" || test == "crashes" || test == "failfetchtype" || test == "faildatatype") return; // Outputs "Received signal 6 (SIGABRT)" #endif Which duplicated 4 out of the 5 tests in the block: #ifdef Q_OS_LINUX // QEMU outputs to stderr about uncaught signals if (QTestPrivate::isRunningArmOnX86() && (test == "assert" || test == "crashes" || test == "faildatatype" || test == "failfetchtype" || test == "silent" )) return; #endif But as Linux is Unix, we never got to that second block for those 4 tests. Change-Id: I2b24e1d3cad44897906efffd177fb4b5507d190a Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit f1ba2b9f44964a0546da4815669cf728e50dd4a8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
63959e4560
commit
514d24da02
@ -783,15 +783,10 @@ void checkErrorOutput(const QString &test, const QByteArray &errorOutput)
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
// QEMU outputs to stderr about uncaught signals
|
||||
if (QTestPrivate::isRunningArmOnX86() &&
|
||||
(test == "assert"
|
||||
|| test == "crashes"
|
||||
|| test == "faildatatype"
|
||||
|| test == "failfetchtype"
|
||||
|| test == "silent"
|
||||
))
|
||||
return;
|
||||
if (test == "silent") {
|
||||
if (QTestPrivate::isRunningArmOnX86())
|
||||
return; // QEMU outputs to stderr about uncaught signals
|
||||
}
|
||||
#endif
|
||||
|
||||
INFO(errorOutput.toStdString());
|
||||
|
Loading…
x
Reference in New Issue
Block a user