diff --git a/tests/auto/qml/codemodel/dependencies/tst_dependencies.cpp b/tests/auto/qml/codemodel/dependencies/tst_dependencies.cpp index 16d0aa64fcd..ef3575d77f5 100644 --- a/tests/auto/qml/codemodel/dependencies/tst_dependencies.cpp +++ b/tests/auto/qml/codemodel/dependencies/tst_dependencies.cpp @@ -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));