Make unsuccessful testFilePath() throw an exception
This commit is contained in:
parent
e9cc26478b
commit
a6fdb3369a
|
@ -261,7 +261,9 @@ string TestApplication::testFilePath(const string &relativeTestFilePath) const
|
||||||
|
|
||||||
// file still not found -> return default path
|
// file still not found -> return default path
|
||||||
if (!fileExists(path = "./testfiles/" + relativeTestFilePath)) {
|
if (!fileExists(path = "./testfiles/" + relativeTestFilePath)) {
|
||||||
cerr << Phrases::Warning << "The testfile \"" << relativeTestFilePath << "\" can not be located." << Phrases::EndFlush;
|
throw runtime_error("The testfile \"" % relativeTestFilePath % "\" can not be located. Was looking under: \""
|
||||||
|
% m_testFilesPath % relativeTestFilePath % "\", \"" % m_fallbackTestFilesPath % relativeTestFilePath
|
||||||
|
% "\" and \"./testfiles/" % relativeTestFilePath + "\"");
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue