summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/tst_selftests.cpp
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2021-02-11 10:51:55 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2021-02-13 10:02:51 +0200
commit0ce443691fac1188103e5eaa66be40278d5d5e97 (patch)
treec3ab6b2ce3a667cabecec57222e1d624122144a7 /tests/auto/testlib/selftests/tst_selftests.cpp
parent9585500539b3674296c61b884fe3f12363efb848 (diff)
Move QEMU emulation detector to QTest
The emulation detection has been usable only on qtbase tests, move it to QTest so that it can be used in other modules as well. Pick-to: 6.1 Change-Id: I4b2321b7856414d7b1cfd5e6b1405a633c6bb878 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/tst_selftests.cpp')
-rw-r--r--tests/auto/testlib/selftests/tst_selftests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp
index 4c5e56b97b..1b1ad50e9b 100644
--- a/tests/auto/testlib/selftests/tst_selftests.cpp
+++ b/tests/auto/testlib/selftests/tst_selftests.cpp
@@ -48,7 +48,7 @@
#include <private/cycle_p.h>
-#include "emulationdetector.h"
+#include <QtTest/private/qemulationdetector_p.h>
struct BenchmarkResult
{
@@ -345,7 +345,7 @@ bool compareLine(const QString &logger, const QString &subdir,
return true;
}
- if (EmulationDetector::isRunningArmOnX86() && subdir == QLatin1String("float")) {
+ if (QTestPrivate::isRunningArmOnX86() && subdir == QLatin1String("float")) {
// QEMU cheats at qfloat16, so outputs it as if it were a float.
if (actualLine.endsWith(QLatin1String("Actual (operandLeft) : 0.001"))
&& expectedLine.endsWith(QLatin1String("Actual (operandLeft) : 0.000999"))) {
@@ -787,7 +787,7 @@ void checkErrorOutput(const QString &test, const QByteArray &errorOutput)
#ifdef Q_OS_LINUX
// QEMU outputs to stderr about uncaught signals
- if (EmulationDetector::isRunningArmOnX86() &&
+ if (QTestPrivate::isRunningArmOnX86() &&
(test == "assert"
|| test == "blacklisted"
|| test == "crashes"