diff --git a/tests/testutils.cpp b/tests/testutils.cpp index 1cb429c..5712a16 100644 --- a/tests/testutils.cpp +++ b/tests/testutils.cpp @@ -157,7 +157,13 @@ string TestApplication::testFilePath(const string &name) const } // file still not found -> return default path - return "./testfiles/" + name; + path = "./testfiles/" + name; + file.clear(); + file.open(path = m_testFilesPathEnvValue + name, ios_base::in); + if(!file.good()) { + cerr << "Warning: The testfile \"" << path << "\" can not be located." << endl; + } + return path; } #ifdef PLATFORM_UNIX