diff options
author | Hefee <hefee@netzguerilla.net> | 2016-05-11 02:17:16 +0300 |
---|---|---|
committer | Hefee <hefee@netzguerilla.net> | 2016-05-12 12:34:21 +0300 |
commit | edb37596847d59b6e5d470571a8cc197c474f36a (patch) | |
tree | 573c60012f3e5158c8526ded7f82d32df138e516 /test/testxmlparse.cpp | |
parent | 0f9c32452cb04d1862803a70c12262ba09db4f9a (diff) |
For tests we do not need a xserver running.
Use for tests QTEST_GUILESS_MAIN and QTEST_APPLESS_MAIN.
Diffstat (limited to 'test/testxmlparse.cpp')
-rw-r--r-- | test/testxmlparse.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testxmlparse.cpp b/test/testxmlparse.cpp index a5b66aab2..5e49f7ee8 100644 --- a/test/testxmlparse.cpp +++ b/test/testxmlparse.cpp @@ -441,5 +441,10 @@ private slots: }; -QTEST_MAIN(TestXmlParse) +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + QTEST_MAIN(TestXmlParse) +#else + QTEST_GUILESS_MAIN(TestXmlParse) +#endif + #include "testxmlparse.moc" |