summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-01-26 14:23:10 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:14 -0300
commitb9862f6a783ad302e6ef6f6f850ac95a5071c4ca (patch)
treef613d5563ee0cc6242a573d094a279303f6af2fd
parentc1978362f242419bb0e1f8f432c6e200cd26654d (diff)
Use QCoreApplication instead of QApplication for TestModifyDocumentation.
This change was made just to avoid a crash on our FREMANTLE/ARMEL buildbot, the test still the same. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
-rw-r--r--tests/testmodifydocumentation.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/testmodifydocumentation.cpp b/tests/testmodifydocumentation.cpp
index c66d29af..49de2797 100644
--- a/tests/testmodifydocumentation.cpp
+++ b/tests/testmodifydocumentation.cpp
@@ -62,7 +62,14 @@ void TestModifyDocumentation::testModifyDocumentation()
</description>\n"));
}
-// we need an event loop to run these tests
-QTEST_MAIN(TestModifyDocumentation)
+// We expand QTEST_MAIN macro but using QCoreApplication instead of QApplication
+// because this test needs an event loop but can't use QApplication to avoid a crash
+// on our ARMEL/FRAMANTLE buildbot
+int main(int argc, char** argv)
+{
+ QCoreApplication app(argc, argv);
+ TestModifyDocumentation tc;
+ return QTest::qExec(&tc, argc, argv);
+}
#include "testmodifydocumentation.moc"