diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-06 14:14:59 +0200 |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-06 14:14:59 +0200 |
commit | e800ada8fea5b3f5858574696b373959a8e15b43 (patch) | |
tree | 24548764d0285d431b63f972c4486422f453d565 /tests/auto/lancelot | |
parent | 01bc165834ed9dbe7e9c97a7ae988509d86a9312 (diff) |
We only want to test hw accelerated GL 2.0 implementations.
Diffstat (limited to 'tests/auto/lancelot')
-rw-r--r-- | tests/auto/lancelot/tst_lancelot.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/auto/lancelot/tst_lancelot.cpp b/tests/auto/lancelot/tst_lancelot.cpp index 7381c1d58a..23a5c94346 100644 --- a/tests/auto/lancelot/tst_lancelot.cpp +++ b/tests/auto/lancelot/tst_lancelot.cpp @@ -175,7 +175,14 @@ void tst_Lancelot::testOpenGL_data() void tst_Lancelot::testOpenGL() { - runTestSuite(); + QGLWidget glWidget; + if (glWidget.isValid() && glWidget.format().directRendering() + && (QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_Version_2_0)) + { + runTestSuite(); + } else { + QSKIP("System under test does not meet preconditions for GL testing. Skipping.", SkipAll); + } } |