diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qx11info/tst_qx11info.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qx11info/tst_qx11info.cpp b/tests/auto/qx11info/tst_qx11info.cpp index b680834..ab741be 100644 --- a/tests/auto/qx11info/tst_qx11info.cpp +++ b/tests/auto/qx11info/tst_qx11info.cpp @@ -52,6 +52,7 @@ class tst_QX11Info : public QObject private slots: void staticFunctionsBeforeQApplication(); + void isPlatformX11(); void appTime(); }; @@ -120,6 +121,14 @@ void tst_QX11Info::staticFunctionsBeforeQApplication() QCOMPARE(appTime, 0ul); } +void tst_QX11Info::isPlatformX11() +{ + int argc = 0; + QApplication app(argc, 0); + + QVERIFY(QX11Info::isPlatformX11()); +} + void tst_QX11Info::appTime() { int argc = 0; |