Fixed backslash detection in filenames-as-tags

This commit is contained in:
Phil Nash 2015-07-03 18:07:13 +01:00
parent 8f66e3495b
commit 62e517f833

View File

@ -112,7 +112,7 @@ namespace Catch {
std::set<std::string> tags = test.tags;
std::string filename = test.lineInfo.file;
std::string::size_type lastSlash = filename.find_last_of( "\//" );
std::string::size_type lastSlash = filename.find_last_of( "\\/" );
if( lastSlash != std::string::npos )
filename = filename.substr( lastSlash+1 );