Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Regression_test/RegressionSceneList.inl
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ void RegressionSceneList<T>::collectScenesFromList(const std::string& scenesDir,



std::string scene = listDir + "/" + sceneFromList;
std::string scene = FileSystem::append(listDir, sceneFromList);
std::string sceneFromScenesDir(scene);
sceneFromScenesDir.erase( sceneFromScenesDir.find(scenesDir+(scenesDir[scenesDir.size()-1] == '/' ? "" : "/")), scenesDir.size()+1 );
std::string reference = fullPathReferenceDir + "/" + sceneFromList + ".reference";
std::string reference = FileSystem::append(fullPathReferenceDir, sceneFromList) + ".reference";

#ifdef WIN32
// Minimize absolute scene path to avoid MAX_PATH problem
Expand Down
4 changes: 3 additions & 1 deletion Regression_test/Regression_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ std::string BaseRegression_test::getTestName(const ::testing::TestParamInfo<Regr
std::string name = path.substr(pos);
std::replace(name.begin(), name.end(), '.', '_');

return name;
const auto hash = std::hash<std::string>{}(path);

return name + "_" + std::to_string(hash);
}


Expand Down