summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/tst_qmltest.cpp
diff options
context:
space:
mode:
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);