Skip testing of QOpenGlConfig on platforms that don't support it

Task-number: QTBUG-59966
Change-Id: If74657d0a0133c67f57bf92ae96d2d868d523f0e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Sami Nurmenniemi 2017-04-07 09:42:22 +03:00
parent a890337433
commit 6e649f9714

View File

@ -100,6 +100,7 @@ class tst_QOpenGlConfig : public QObject
Q_OBJECT
private slots:
void initTestCase();
void testConfiguration();
void testGlConfiguration();
void testBugList();
@ -162,6 +163,12 @@ static void dumpConfiguration(QTextStream &str)
}
}
void tst_QOpenGlConfig::initTestCase()
{
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::OpenGL))
QSKIP("OpenGL is not supported on this platform.");
}
void tst_QOpenGlConfig::testConfiguration()
{
QString result;