mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
test files directory detection fix
This commit is contained in:
@@ -822,14 +822,15 @@ std::string JSONTest::getTestFilesPath(const std::string& type)
|
|||||||
std::string validDir(ostr.str());
|
std::string validDir(ostr.str());
|
||||||
Poco::Path pathPattern(validDir);
|
Poco::Path pathPattern(validDir);
|
||||||
if (Poco::File(pathPattern).exists())
|
if (Poco::File(pathPattern).exists())
|
||||||
validDir += '*';
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
|
validDir += '*';
|
||||||
|
return validDir;
|
||||||
|
}
|
||||||
|
|
||||||
ostr.str("");
|
ostr.str("");
|
||||||
ostr << "/JSON/testsuite/testfiles/" << type << '/';
|
ostr << "/JSON/testsuite/testfiles/" << type << '/';
|
||||||
validDir = Poco::Environment::get("POCO_BASE") + ostr.str();
|
validDir = Poco::Environment::get("POCO_BASE") + ostr.str();
|
||||||
pathPattern = validDir;
|
pathPattern = validDir;
|
||||||
}
|
|
||||||
|
|
||||||
if (Poco::File(pathPattern).exists())
|
if (Poco::File(pathPattern).exists())
|
||||||
validDir += '*';
|
validDir += '*';
|
||||||
|
|||||||
Reference in New Issue
Block a user