Use QTEST_GUILESS_MAIN where applicable

instead of QTEST_MAIN. Reduces the initialization that is done by the Qt
test applications, and can also reduce interference with normal OS
operations like the current window loosing focus.

Change-Id: If88f289281aa1c8703ac7d4dbe0799d067c16588
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2022-06-10 12:21:30 +02:00
parent e2e5d67bc3
commit 737877984d
47 changed files with 47 additions and 50 deletions

View File

@@ -1154,5 +1154,5 @@ void tst_CppSelectionChanger::testWholeDocumentSelection()
QVERIFY(!result);
}
QTEST_MAIN(tst_CppSelectionChanger)
QTEST_GUILESS_MAIN(tst_CppSelectionChanger)
#include "tst_cppselectionchangertest.moc"