From 62e517f83325ece83f65b14a01283b5e5c001160 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 3 Jul 2015 18:07:13 +0100 Subject: [PATCH] Fixed backslash detection in filenames-as-tags --- include/catch_runner.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/catch_runner.hpp b/include/catch_runner.hpp index 18754483..4234f601 100644 --- a/include/catch_runner.hpp +++ b/include/catch_runner.hpp @@ -112,7 +112,7 @@ namespace Catch { std::set 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 );