diff options
Diffstat (limited to 'tests/auto/cpptest/q3dsurface')
-rw-r--r-- | tests/auto/cpptest/q3dsurface/q3dsurface.pro | 1 | ||||
-rw-r--r-- | tests/auto/cpptest/q3dsurface/tst_surface.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/cpptest/q3dsurface/q3dsurface.pro b/tests/auto/cpptest/q3dsurface/q3dsurface.pro index b7a6bf08..9ed3c7f5 100644 --- a/tests/auto/cpptest/q3dsurface/q3dsurface.pro +++ b/tests/auto/cpptest/q3dsurface/q3dsurface.pro @@ -1,3 +1,4 @@ +include(../common/cpptestutil.pri) QT += testlib datavisualization TARGET = tst_cpptest diff --git a/tests/auto/cpptest/q3dsurface/tst_surface.cpp b/tests/auto/cpptest/q3dsurface/tst_surface.cpp index 676f785e..04fe5d21 100644 --- a/tests/auto/cpptest/q3dsurface/tst_surface.cpp +++ b/tests/auto/cpptest/q3dsurface/tst_surface.cpp @@ -31,6 +31,8 @@ #include <QtDataVisualization/Q3DSurface> +#include "cpptestutil.h" + using namespace QtDataVisualization; class tst_surface: public QObject @@ -75,6 +77,8 @@ QSurface3DSeries *newSeries() void tst_surface::initTestCase() { + if (!CpptestUtil::isOpenGLSupported()) + QSKIP("OpenGL not supported on this platform"); } void tst_surface::cleanupTestCase() |