From 9570106f806f72a1ce9c8633f5b00404dd0e6bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pasi=20Pet=C3=A4j=C3=A4j=C3=A4rvi?= Date: Fri, 11 Mar 2022 15:27:42 +0200 Subject: CI: Disable tst_qmltest on QNX QEMU MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QNX QEMU does not have support for hw acceleration thus missing createPlatformOpenGLContext, which is required for the QML applications to work. Change-Id: Ic24f96e9cdc907ae16c1a50b0f0ddf75085d807e Reviewed-by: Tomi Korpipää (cherry picked from commit dc7372156b7a1e8113b7c2c459d7f4d7aa3f98c6) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/qmltest/tst_qmltest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit v1.2.3