C++: Fix crashes in tests with Qt5.

tst_Semantic and tst_CodeFormatter crash with QTEST_APPLESS_MAIN since
they need to access some font settings via QTextDocument /
Q*Application. Use QTEST_MAIN instead.

Change-Id: Id85228acb6006cfaee41c634c6a32b6c23a70105
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Nikolai Kosjar
2012-10-23 12:10:08 +02:00
parent e082b0f5e1
commit 6481deb8c8
2 changed files with 2 additions and 2 deletions

View File

@@ -2060,7 +2060,7 @@ void tst_CodeFormatter::attributeInAccessSpecifier()
checkIndent(data);
}
QTEST_APPLESS_MAIN(tst_CodeFormatter)
QTEST_MAIN(tst_CodeFormatter)
#include "tst_codeformatter.moc"

View File

@@ -732,5 +732,5 @@ void tst_Semantic::diagnostic_error()
QCOMPARE(doc->globals->memberCount(), 1U);
}
QTEST_APPLESS_MAIN(tst_Semantic)
QTEST_MAIN(tst_Semantic)
#include "tst_semantic.moc"