From edb37596847d59b6e5d470571a8cc197c474f36a Mon Sep 17 00:00:00 2001 From: Hefee Date: Wed, 11 May 2016 01:17:16 +0200 Subject: For tests we do not need a xserver running. Use for tests QTEST_GUILESS_MAIN and QTEST_APPLESS_MAIN. --- test/testxmlparse.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/testxmlparse.cpp') 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" -- cgit v1.2.3