diff options
author | Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> | 2022-03-11 15:27:42 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-14 15:58:46 +0000 |
commit | 9570106f806f72a1ce9c8633f5b00404dd0e6bf6 (patch) | |
tree | ab45225229ff144a513cc7ae0487d0e1ec9686f5 | |
parent | 33731306711c984db9413c0687c56ce7a71581ce (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.
Change-Id: Ic24f96e9cdc907ae16c1a50b0f0ddf75085d807e
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit dc7372156b7a1e8113b7c2c459d7f4d7aa3f98c6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/auto/qmltest/tst_qmltest.cpp | 8 |
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); |