Skip to content

Commit

Permalink
Merge pull request #52 from bakpaul/fix_windows_regression
Browse files Browse the repository at this point in the history
Fix the problem with windows path
  • Loading branch information
bakpaul authored Oct 12, 2023
2 parents f74afed + 2784b42 commit b5be851
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Regression_test/RegressionSceneList.inl
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,24 @@ RegressionSceneList<T>::RegressionSceneList()
std::vector<std::string> refFolderVector;

//REGRESSION_SCENES_DIR
while ((pos_end = multipleSceneDir.find(':', pos_start)) != std::string::npos)
while ((pos_end = multipleSceneDir.find('|', pos_start)) != std::string::npos)
{
tempSceneFolder = multipleSceneDir.substr (pos_start, pos_end - pos_start);
pos_start = pos_end + 1;
sceneFolderVector.push_back(tempSceneFolder);
}
if(multipleSceneDir.substr(pos_start,std::string::npos).size()) //get what's after the last ':' if exists
if(multipleSceneDir.substr(pos_start,std::string::npos).size()) //get what's after the last '|' if exists
sceneFolderVector.push_back(multipleSceneDir.substr(pos_start,std::string::npos));

//REGRESSION_REFERENCES_DIR
pos_start = 0;
while ((pos_end = multipleRefDir.find(':', pos_start)) != std::string::npos)
while ((pos_end = multipleRefDir.find('|', pos_start)) != std::string::npos)
{
tempRefFolder = multipleRefDir.substr (pos_start, pos_end - pos_start);
pos_start = pos_end + 1;
refFolderVector.push_back(tempRefFolder);
}
if(multipleRefDir.substr(pos_start,std::string::npos).size()) //get what's after the last ':' if exists
if(multipleRefDir.substr(pos_start,std::string::npos).size()) //get what's after the last '|' if exists
refFolderVector.push_back(multipleRefDir.substr(pos_start,std::string::npos));

if(sceneFolderVector.size() != refFolderVector.size())
Expand Down

0 comments on commit b5be851

Please sign in to comment.