From a6a96e6e85af9484af812fb334722fee1efd05eb Mon Sep 17 00:00:00 2001 From: Tomi Korpipaa Date: Thu, 25 Feb 2021 07:19:42 +0200 Subject: Disable tst_qmltest on QEMU 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 --- tests/auto/qmltest/tst_qmltest.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 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); -- cgit v1.2.1