summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dbars
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cpptest/q3dbars')
-rw-r--r--tests/auto/cpptest/q3dbars/q3dbars.pro2
-rw-r--r--tests/auto/cpptest/q3dbars/tst_bars.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/cpptest/q3dbars/q3dbars.pro b/tests/auto/cpptest/q3dbars/q3dbars.pro
index a7f7c809..bba500fa 100644
--- a/tests/auto/cpptest/q3dbars/q3dbars.pro
+++ b/tests/auto/cpptest/q3dbars/q3dbars.pro
@@ -1,3 +1,5 @@
+include(../common/cpptestutil.pri)
+
QT += testlib datavisualization
TARGET = tst_cpptest
diff --git a/tests/auto/cpptest/q3dbars/tst_bars.cpp b/tests/auto/cpptest/q3dbars/tst_bars.cpp
index 952682b9..0d128c36 100644
--- a/tests/auto/cpptest/q3dbars/tst_bars.cpp
+++ b/tests/auto/cpptest/q3dbars/tst_bars.cpp
@@ -34,6 +34,8 @@
#include <QtDataVisualization/Q3DInputHandler>
#include <QtDataVisualization/QTouch3DInputHandler>
+#include "cpptestutil.h"
+
using namespace QtDataVisualization;
class tst_bars: public QObject
@@ -85,6 +87,8 @@ QBar3DSeries *newSeries()
void tst_bars::initTestCase()
{
+ if (!CpptestUtil::isOpenGLSupported())
+ QSKIP("OpenGL not supported on this platform");
}
void tst_bars::cleanupTestCase()