summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/qopengl
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2012-05-02 10:49:51 +0300
committerQt by Nokia <qt-info@nokia.com>2012-05-03 11:33:05 +0200
commit8c6c76b77e627386a29829c3130ba2fec52c733b (patch)
tree74660fe365123b47ccc7a9e6a49b626323d2fee1 /tests/auto/gui/qopengl
parentc505a16451c7b03740d895897d292ad178f99b23 (diff)
Skip tst_QOpenGL::openGLPaintDevice() if wrong openGL version.
It seems that this case is failing on CI because OpenGL version, so skip if OpenGL is not recent enough. Task-number: QTBUG-24192 Change-Id: I543e7a092e5c107ee57cd9dce7dc5c890a0315cf Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'tests/auto/gui/qopengl')
-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 38208d27c8..324e1f5d12 100644
--- a/tests/auto/gui/qopengl/tst_qopengl.cpp
+++ b/tests/auto/gui/qopengl/tst_qopengl.cpp
@@ -474,6 +474,9 @@ void tst_QOpenGL::openGLPaintDevice()
QOpenGLContext ctx;
ctx.create();
+ QSurfaceFormat format = ctx.format();
+ if (format.majorVersion() < 2)
+ QSKIP("This test requires at least OpenGL 2.0");
ctx.makeCurrent(&window);
QImage image(128, 128, QImage::Format_RGB32);