qt5base-lts/tests/auto/testlib
Edward Welbourne 37bc11e707 Refactor QTEST*_MAIN() implementations
The various variants duplicated some rather complex code around
varying setup in the middle. Rework in terms of a macro that defines
main() and takes the setup code as a parameter. That setup code also
had some common structure, so package that in a setup macro that takes
the class to be used.

Reworked various testlib selftests that were using QTEST_MAIN_IMPL();
change to use the new QTEST_MAIN_WRAPPER() and TEST_MAIN_SETUP().
These might be better dealt with by supporting a second form of the
initMain() test-setup function in the test classes, that takes
references for argc and argv, to let a test massage its command-line
options.

Change-Id: I7fb16b38d51c80ba2f5c9c82f3b7a37ffc636795
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-12-09 20:54:25 +01:00
..
initmain Remove the qmake project files 2021-01-07 15:32:28 +01:00
outformat Remove the qmake project files 2021-01-07 15:32:28 +01:00
qabstractitemmodeltester Fix QAbstractItemModelTester false positive 2021-04-26 13:44:51 +01:00
qsignalspy Remove the qmake project files 2021-01-07 15:32:28 +01:00
selftests Refactor QTEST*_MAIN() implementations 2021-12-09 20:54:25 +01:00
CMakeLists.txt Android: exclude faulty tst_selftests 2020-11-25 23:08:09 +02:00