diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2018-12-30 15:45:04 +0100 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2019-01-07 09:25:18 +0000 |
commit | bcafe202c9f8a7c4bad4cf60095138b1d6cbf2ac (patch) | |
tree | 16058acf81b865f97929dac2283101e0db9b66b2 /src/plugins/cpptools/cppsourceprocessor_test.cpp | |
parent | 5ed848fd8f56e714d4c318dcb3f50ffd664dee15 (diff) | |
download | qt-creator-bcafe202c9f8a7c4bad4cf60095138b1d6cbf2ac.tar.gz |
AutoTest: Allow redefinition of integrated QTest macros
Undefining the macro could lead to a crash when evaluating the
arguments; at least the test was not recognized (probably as
the loop was exited at the first ocurrence of the macro name).
Use case:
#ifdef QTEST_APPLESS_MAIN
# undef QTEST_APPLESS_MAIN
# define QTEST_APPLESS_MAIN TF_TEST_MAIN
#endif
QTEST_APPLESS_MAIN(tst_MyClass)
Task-number: QTCREATORBUG-19910
Change-Id: I9f935f82a30b9681398e5d93fccfe6d474765022
Reviewed-by: Robert Szefner <robertsz27@interia.pl>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppsourceprocessor_test.cpp')
0 files changed, 0 insertions, 0 deletions