Tests: C++: Make tests run from shadow builds.
For shadow builds some tests couldn't find their test data. Solved by
using the same pattern as in Qt tests: Inject $$PWD as SRCDIR via a
DEFINES statement.
Note: It was considered to use QFINDTESTDATA for Qt5, but this was
rejected due to:
1) It's Qt5 only (would mean to introduce some wrapper...)
2) As the doc states, it will not work with QTEST_APPLESS_MAIN tests.
Change-Id: Ie6cf59570fe61725b7f6f83b7da650331ddb38fc
Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
Showing
- tests/auto/cplusplus/cxx11/cxx11.pro 4 additions, 0 deletionstests/auto/cplusplus/cxx11/cxx11.pro
- tests/auto/cplusplus/cxx11/tst_cxx11.cpp 2 additions, 1 deletiontests/auto/cplusplus/cxx11/tst_cxx11.cpp
- tests/auto/cplusplus/preprocessor/preprocessor.pro 4 additions, 1 deletiontests/auto/cplusplus/preprocessor/preprocessor.pro
- tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp 2 additions, 2 deletionstests/auto/cplusplus/preprocessor/tst_preprocessor.cpp
Loading
Please register or sign in to comment