diff options
authorHugo Parente Lima <>2011-01-26 14:23:10 -0200
committerHugo Parente Lima <>2012-03-09 19:10:14 -0300
commitb9862f6a783ad302e6ef6f6f850ac95a5071c4ca (patch)
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 <> Renato Ara├║jo <>
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()
-// we need an event loop to run these tests
+// 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"