summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dcustom-label/tst_custom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cpptest/q3dcustom-label/tst_custom.cpp')
-rw-r--r--tests/auto/cpptest/q3dcustom-label/tst_custom.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/cpptest/q3dcustom-label/tst_custom.cpp b/tests/auto/cpptest/q3dcustom-label/tst_custom.cpp
index 1c45c908..44c9d2b2 100644
--- a/tests/auto/cpptest/q3dcustom-label/tst_custom.cpp
+++ b/tests/auto/cpptest/q3dcustom-label/tst_custom.cpp
@@ -31,6 +31,8 @@
#include <QtDataVisualization/QCustom3DLabel>
+#include "cpptestutil.h"
+
using namespace QtDataVisualization;
class tst_custom: public QObject
@@ -55,6 +57,8 @@ private:
void tst_custom::initTestCase()
{
+ if (!CpptestUtil::isOpenGLSupported())
+ QSKIP("OpenGL not supported on this platform");
}
void tst_custom::cleanupTestCase()