summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2021-02-25 07:19:42 +0200
committerTomi Korpipaa <tomi.korpipaa@qt.io>2021-02-25 07:59:13 +0200
commita6a96e6e85af9484af812fb334722fee1efd05eb (patch)
tree9f85b477cb8d7a301cab55036fdbaace9f1c0707
parent3435c47100d18105b7b0da42a4df75629604fbb7 (diff)
Disable tst_qmltest on QEMUv6.1.0-beta1
QEMU does not have support for createPlatformOpenGLContext, which is required for the QML applications to work. Fixes: QTBUG-91381 Change-Id: Ie14c6306c3aa952e6e71681c17013586d0dfb592 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
-rw-r--r--tests/auto/qmltest/tst_qmltest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qmltest/tst_qmltest.cpp b/tests/auto/qmltest/tst_qmltest.cpp
index 8cc3c85b..746430c5 100644
--- a/tests/auto/qmltest/tst_qmltest.cpp
+++ b/tests/auto/qmltest/tst_qmltest.cpp
@@ -30,6 +30,10 @@
#include <QtQuickTest/quicktest.h>
int main(int argc, char **argv)
{
+ if (!qEnvironmentVariableIsEmpty("QEMU_LD_PREFIX")) {
+ qWarning("This test will fail due to QEMU emulation shortcomings.");
+ return 0;
+ }
qputenv("QSG_RHI_BACKEND", "opengl");
QTEST_SET_MAIN_SOURCE_PATH
return quick_test_main(argc, argv, "qmltest", QUICK_TEST_SOURCE_DIR);