From 8f3b64c6570d07a9d807ce245291d6565cf3f4ae Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Thu, 21 Jan 2010 20:41:51 -0200 Subject: Test TestModifyDocumentation does not need X11 server connection to run. Reviewed by Marcelo Lira --- tests/testmodifydocumentation.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/testmodifydocumentation.cpp b/tests/testmodifydocumentation.cpp index 5a9e2c386..33a478650 100644 --- a/tests/testmodifydocumentation.cpp +++ b/tests/testmodifydocumentation.cpp @@ -23,6 +23,7 @@ #include "testmodifydocumentation.h" +#include #include #include "testutil.h" #include @@ -61,6 +62,10 @@ void TestModifyDocumentation::testModifyDocumentation() \n")); } -QTEST_MAIN(TestModifyDocumentation) +// we need an event loop to run these tests +int argv = 0; +const char* argc[] = {""}; +QCoreApplication app(argv, const_cast(argc)); +QTEST_APPLESS_MAIN(TestModifyDocumentation) #include "testmodifydocumentation.moc" -- cgit v1.2.3