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:
parent
a890337433
commit
6e649f9714
@ -100,6 +100,7 @@ class tst_QOpenGlConfig : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void initTestCase();
|
||||||
void testConfiguration();
|
void testConfiguration();
|
||||||
void testGlConfiguration();
|
void testGlConfiguration();
|
||||||
void testBugList();
|
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()
|
void tst_QOpenGlConfig::testConfiguration()
|
||||||
{
|
{
|
||||||
QString result;
|
QString result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user