Commit 6481deb8 authored by Nikolai Kosjar's avatar Nikolai Kosjar

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: default avatarEike Ziller <eike.ziller@digia.com>
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent e082b0f5
......@@ -2060,7 +2060,7 @@ void tst_CodeFormatter::attributeInAccessSpecifier()
checkIndent(data);
}
QTEST_APPLESS_MAIN(tst_CodeFormatter)
QTEST_MAIN(tst_CodeFormatter)
#include "tst_codeformatter.moc"
......
......@@ -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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment