From 8c6c76b77e627386a29829c3130ba2fec52c733b Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Wed, 2 May 2012 10:49:51 +0300 Subject: Skip tst_QOpenGL::openGLPaintDevice() if wrong openGL version. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Samuel Rødal --- tests/auto/gui/qopengl/tst_qopengl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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); -- cgit v1.2.3