diff options
Diffstat (limited to '3rdparty/catch/include/internal/catch_test_case_info.hpp')
-rw-r--r-- | 3rdparty/catch/include/internal/catch_test_case_info.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/3rdparty/catch/include/internal/catch_test_case_info.hpp b/3rdparty/catch/include/internal/catch_test_case_info.hpp index 90f53411104..3847cc936ec 100644 --- a/3rdparty/catch/include/internal/catch_test_case_info.hpp +++ b/3rdparty/catch/include/internal/catch_test_case_info.hpp @@ -16,7 +16,7 @@ namespace Catch { inline TestCaseInfo::SpecialProperties parseSpecialTag( std::string const& tag ) { - if( startsWith( tag, "." ) || + if( startsWith( tag, '.' ) || tag == "hide" || tag == "!hide" ) return TestCaseInfo::IsHidden; @@ -26,6 +26,8 @@ namespace Catch { return TestCaseInfo::ShouldFail; else if( tag == "!mayfail" ) return TestCaseInfo::MayFail; + else if( tag == "!nonportable" ) + return TestCaseInfo::NonPortable; else return TestCaseInfo::None; } @@ -100,7 +102,7 @@ namespace Catch { std::ostringstream oss; for( std::set<std::string>::const_iterator it = tags.begin(), itEnd = tags.end(); it != itEnd; ++it ) { - oss << "[" << *it << "]"; + oss << '[' << *it << ']'; std::string lcaseTag = toLower( *it ); testCaseInfo.properties = static_cast<TestCaseInfo::SpecialProperties>( testCaseInfo.properties | parseSpecialTag( lcaseTag ) ); testCaseInfo.lcaseTags.insert( lcaseTag ); |