summaryrefslogtreecommitdiffstats
path: root/tests/auto/qglfunctions
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-08-13 12:18:50 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-08-13 12:18:50 +1000
commit1efed3f163164a9c98b4ea7d747507b6fdc52d63 (patch)
tree05bccebe29c8843ef9515596780b3ee03be103d0 /tests/auto/qglfunctions
parent807ef9fde52c423088ab24f5b81146bc17d0afad (diff)
Don't run QGLFunctions tests if cannot create context
Diffstat (limited to 'tests/auto/qglfunctions')
-rw-r--r--tests/auto/qglfunctions/tst_qglfunctions.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qglfunctions/tst_qglfunctions.cpp b/tests/auto/qglfunctions/tst_qglfunctions.cpp
index 8d6be73c8f..73e63b59a8 100644
--- a/tests/auto/qglfunctions/tst_qglfunctions.cpp
+++ b/tests/auto/qglfunctions/tst_qglfunctions.cpp
@@ -90,6 +90,8 @@ void tst_QGLFunctions::features()
// Make a context current.
QGLWidget glw;
+ if (!glw.isValid())
+ QSKIP("Could not create a GL context", SkipAll);
glw.makeCurrent();
funcs.initializeGLFunctions();
@@ -192,6 +194,8 @@ void tst_QGLFunctions::multitexture()
{
QGLFunctions funcs;
QGLWidget glw;
+ if (!glw.isValid())
+ QSKIP("Could not create a GL context", SkipAll);
glw.makeCurrent();
funcs.initializeGLFunctions();
@@ -216,6 +220,8 @@ void tst_QGLFunctions::blendColor()
{
QGLFunctions funcs;
QGLWidget glw;
+ if (!glw.isValid())
+ QSKIP("Could not create a GL context", SkipAll);
glw.makeCurrent();
funcs.initializeGLFunctions();