mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Fixed backslash detection in filenames-as-tags
This commit is contained in:
parent
8f66e3495b
commit
62e517f833
@ -112,7 +112,7 @@ namespace Catch {
|
|||||||
std::set<std::string> tags = test.tags;
|
std::set<std::string> tags = test.tags;
|
||||||
|
|
||||||
std::string filename = test.lineInfo.file;
|
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 )
|
if( lastSlash != std::string::npos )
|
||||||
filename = filename.substr( lastSlash+1 );
|
filename = filename.substr( lastSlash+1 );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user