summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/tst_qmltest.cpp
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2022-03-11 15:27:42 +0200
committerPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2022-03-14 10:57:28 +0200
commitdc7372156b7a1e8113b7c2c459d7f4d7aa3f98c6 (patch)
tree993d0ba29350e6299deda49b07679c44ff6a16d6 /tests/auto/qmltest/tst_qmltest.cpp
parentf9d557547656194782bc22bb42f1508a7a48a294 (diff)
CI: Disable tst_qmltest on QNX QEMU
QNX QEMU does not have support for hw acceleration thus missing createPlatformOpenGLContext, which is required for the QML applications to work. Pick-to: 6.2 6.3 Change-Id: Ic24f96e9cdc907ae16c1a50b0f0ddf75085d807e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'tests/auto/qmltest/tst_qmltest.cpp')
-rw-r--r--tests/auto/qmltest/tst_qmltest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qmltest/tst_qmltest.cpp b/tests/auto/qmltest/tst_qmltest.cpp
index 746430c5..26d56de6 100644
--- a/tests/auto/qmltest/tst_qmltest.cpp
+++ b/tests/auto/qmltest/tst_qmltest.cpp
@@ -34,6 +34,14 @@ int main(int argc, char **argv)
qWarning("This test will fail due to QEMU emulation shortcomings.");
return 0;
}
+#ifdef Q_OS_QNX
+ if (qEnvironmentVariable("QTEST_ENVIRONMENT").split(' ').contains("ci") &&
+ qEnvironmentVariable("QT_QPA_PLATFORM").split(' ').contains("offscreen")
+ ) {
+ qWarning("This test will fail on CI QNX QEMU without OpenGL support.");
+ return 0;
+ }
+#endif
qputenv("QSG_RHI_BACKEND", "opengl");
QTEST_SET_MAIN_SOURCE_PATH
return quick_test_main(argc, argv, "qmltest", QUICK_TEST_SOURCE_DIR);