testutils: Fix finding testfiles dir in pwd
This commit is contained in:
parent
18fef23724
commit
2e98e3bd11
|
@ -157,9 +157,8 @@ string TestApplication::testFilePath(const string &name) const
|
|||
}
|
||||
|
||||
// file still not found -> return default path
|
||||
path = "./testfiles/" + name;
|
||||
file.clear();
|
||||
file.open(path = m_testFilesPathEnvValue + name, ios_base::in);
|
||||
file.open(path = "./testfiles/" + name, ios_base::in);
|
||||
if (!file.good()) {
|
||||
cerr << "Warning: The testfile \"" << path << "\" can not be located." << endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue