summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dsurface/tst_surface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cpptest/q3dsurface/tst_surface.cpp')
-rw-r--r--tests/auto/cpptest/q3dsurface/tst_surface.cpp4
1 files changed, 4 insertions, 0 deletions
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()