summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/qopengl/tst_qopengl.cpp
diff options
context:
space:
mode:
authorMichal Klocek <[email protected]>2025-05-26 12:27:31 +0200
committerMichal Klocek <[email protected]>2025-05-30 22:24:56 +0000
commitfb4c1257d849c82f522b85592f9e13256a113fef (patch)
tree82c9e426eb470309c4136a5fa09cf8e4857dfa1a /tests/auto/gui/qopengl/tst_qopengl.cpp
parent7c0a96785fee4fea8ef1452166b1dde88957445c (diff)
Add run opengl tests feature
On Woa cross compile we want to compile with opengl feature, however tests windows arm nodes do not have opengl installed add a feature to skip the tests preventing the crash otherwise. Note this is just temporary workaround and should be reverted as soon as opengl libs land on windows arm vm nodes. Task-number: COIN-1211 Change-Id: Iaae205b9cc10bd17e82152a44b2e976e4321d00d Reviewed-by: Alexandru Croitor <[email protected]>
Diffstat (limited to 'tests/auto/gui/qopengl/tst_qopengl.cpp')
-rw-r--r--tests/auto/gui/qopengl/tst_qopengl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/gui/qopengl/tst_qopengl.cpp b/tests/auto/gui/qopengl/tst_qopengl.cpp
index 36ff1d1f2e9..b9b4c3aa11c 100644
--- a/tests/auto/gui/qopengl/tst_qopengl.cpp
+++ b/tests/auto/gui/qopengl/tst_qopengl.cpp
@@ -185,6 +185,9 @@ static QSurface *createSurface(int surfaceClass)
void tst_QOpenGL::initTestCase()
{
+#if !QT_CONFIG(run_opengl_tests)
+ QSKIP("Skip test as run-opengl-tests feature is off.");
+#endif
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::OpenGL))
QSKIP("OpenGL is not supported on this platform.");
}