testutils: Fix finding testfiles dir in pwd

This commit is contained in:
Martchus 2017-05-19 00:08:27 +02:00
parent 18fef23724
commit 2e98e3bd11
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}