aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-21 20:41:51 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-21 20:43:25 -0200
commit8f3b64c6570d07a9d807ce245291d6565cf3f4ae (patch)
tree57deadcb8982887654a848b1d9de5191292519c6
parentab2840dfef7bcab2dca312092748326e3f7ce6cf (diff)
Test TestModifyDocumentation does not need X11 server connection to run.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--tests/testmodifydocumentation.cpp7
1 files changed, 6 insertions, 1 deletions
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 <QCoreApplication>
#include <QtTest/QTest>
#include "testutil.h"
#include <qtdocparser.h>
@@ -61,6 +62,10 @@ void TestModifyDocumentation::testModifyDocumentation()
</description>\n"));
}
-QTEST_MAIN(TestModifyDocumentation)
+// we need an event loop to run these tests
+int argv = 0;
+const char* argc[] = {""};
+QCoreApplication app(argv, const_cast<char**>(argc));
+QTEST_APPLESS_MAIN(TestModifyDocumentation)
#include "testmodifydocumentation.moc"