Tests hidden with legacy ./ prefix tagged as hidden

This commit is contained in:
Phil Nash 2014-05-20 18:11:23 +01:00
parent fbf3f6f879
commit b43d7703e5
1 changed files with 7 additions and 6 deletions

View File

@ -65,20 +65,21 @@ namespace Catch {
enforceNotReservedTag( tag, _lineInfo );
inTag = false;
if( tag == "hide" || tag == "." ) {
tags.insert( "hide" );
tags.insert( "." );
if( tag == "hide" || tag == "." )
isHidden = true;
}
else {
else
tags.insert( tag );
}
tag.clear();
}
else
tag += c;
}
}
if( isHidden ) {
tags.insert( "hide" );
tags.insert( "." );
}
TestCaseInfo info( _name, _className, desc, tags, isHidden, _lineInfo );
return TestCase( _testCase, info );
}