diff options
author | Tomi Korpipaa <tomi.korpipaa@qt.io> | 2021-02-25 15:13:24 +0200 |
---|---|---|
committer | Tomi Korpipaa <tomi.korpipaa@qt.io> | 2021-02-25 15:19:10 +0200 |
commit | 67f96d88bf1dad76c89b11caaa79177d75953866 (patch) | |
tree | 9aabed54aa7c81b04952eb70681d2315d350043b /tests | |
parent | 433b4c7a93817309d23cb006a4cfe80aad82a0bc (diff) |
Disable tst_qmltest on QEMU
QEMU does not have support for createPlatformOpenGLContext,
which is required for the QML applications to work.
Task-number: QTBUG-91381
Change-Id: I1c61146f889a3ffad49157f3c17cff0bcd3a01c9
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qmltest/tst_qmltest.cpp | 4 |
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); |