diff options
Diffstat (limited to 'tests/auto/cpptest/q3dcustom-label')
-rw-r--r-- | tests/auto/cpptest/q3dcustom-label/q3dcustom-label.pro | 1 | ||||
-rw-r--r-- | tests/auto/cpptest/q3dcustom-label/tst_custom.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/cpptest/q3dcustom-label/q3dcustom-label.pro b/tests/auto/cpptest/q3dcustom-label/q3dcustom-label.pro index af584baa..c47e018a 100644 --- a/tests/auto/cpptest/q3dcustom-label/q3dcustom-label.pro +++ b/tests/auto/cpptest/q3dcustom-label/q3dcustom-label.pro @@ -1,3 +1,4 @@ +include(../common/cpptestutil.pri) QT += testlib datavisualization TARGET = tst_cpptest 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() |