diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2016-07-12 12:07:12 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2016-07-12 12:07:12 +0300 |
commit | 927a8b5071a8ee360ea4a1b24d093d8e9acacf18 (patch) | |
tree | ea4be5cca5ce88d5058d571a428185a848dead7e /test/testxmlparse.cpp | |
parent | a4310f0f5c4855c5249ffb1355c6fc039e141316 (diff) |
Qt4: don't require a X server in the tests
Previous commit was not enough
Diffstat (limited to 'test/testxmlparse.cpp')
-rw-r--r-- | test/testxmlparse.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/testxmlparse.cpp b/test/testxmlparse.cpp index 5e49f7ee8..4b7f7bd69 100644 --- a/test/testxmlparse.cpp +++ b/test/testxmlparse.cpp @@ -442,7 +442,13 @@ private slots: }; #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) - QTEST_MAIN(TestXmlParse) +// Qt4 does not have QTEST_GUILESS_MAIN, so we simulate it. +int main(int argc, char *argv[]) +{ + QCoreApplication app(argc, argv); + TestXmlParse tc; + return QTest::qExec(&tc, argc, argv); +} #else QTEST_GUILESS_MAIN(TestXmlParse) #endif |