Tests: Fix test when using shadow build

Change-Id: I82ebdbd63a221802f24b2ef17ca6c076151fba0c
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
Christian Stenger
2016-07-14 13:37:40 +02:00
parent e43773014a
commit 7583557dcc

View File

@@ -113,7 +113,7 @@ private:
void tst_Dependencies::initTestCase()
{
QLoggingCategory::setFilterRules(QLatin1String("qtc.*.debug=false"));
m_path = QCoreApplication::applicationDirPath() + QLatin1Literal("/samples");
m_path = QLatin1Literal(TESTSRCDIR "/samples");
m_basePaths.append(QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath));