forked from qt-creator/qt-creator
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:
@@ -2060,7 +2060,7 @@ void tst_CodeFormatter::attributeInAccessSpecifier()
|
|||||||
checkIndent(data);
|
checkIndent(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
QTEST_APPLESS_MAIN(tst_CodeFormatter)
|
QTEST_MAIN(tst_CodeFormatter)
|
||||||
|
|
||||||
#include "tst_codeformatter.moc"
|
#include "tst_codeformatter.moc"
|
||||||
|
|
||||||
|
@@ -732,5 +732,5 @@ void tst_Semantic::diagnostic_error()
|
|||||||
QCOMPARE(doc->globals->memberCount(), 1U);
|
QCOMPARE(doc->globals->memberCount(), 1U);
|
||||||
}
|
}
|
||||||
|
|
||||||
QTEST_APPLESS_MAIN(tst_Semantic)
|
QTEST_MAIN(tst_Semantic)
|
||||||
#include "tst_semantic.moc"
|
#include "tst_semantic.moc"
|
||||||
|
Reference in New Issue
Block a user