forked from qt-creator/qt-creator
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>
15 lines
399 B
Prolog
15 lines
399 B
Prolog
include(../../qttest.pri)
|
|
include(../shared/shared.pri)
|
|
|
|
# Inject the source dir for referencing test data from shadow builds.
|
|
DEFINES += SRCDIR=\\\"$$PWD\\\"
|
|
|
|
SOURCES += tst_cxx11.cpp
|
|
OTHER_FILES += \
|
|
data/inlineNamespace.1.cpp \
|
|
data/inlineNamespace.1.errors.txt \
|
|
data/staticAssert.1.cpp \
|
|
data/staticAssert.1.errors.txt \
|
|
data/noExcept.1.cpp \
|
|
data/noExcept.1.errors.txt
|