Fixed escaping of ' in TeamCity reporter

This commit is contained in:
Phil Nash 2014-12-29 20:04:54 +00:00
parent 1cbc4f2c9c
commit 3e0c501812
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ namespace Catch {
static std::string escape( std::string const& str ) {
std::string escaped = str;
replaceInPlace( escaped, "|", "||" );
replaceInPlace( escaped, "\'", "|\'" );
replaceInPlace( escaped, "'", "|'" );
replaceInPlace( escaped, "\n", "|n" );
replaceInPlace( escaped, "\r", "|r" );
replaceInPlace( escaped, "[", "|[" );
@ -56,7 +56,7 @@ namespace Catch {
if( testInfo.isHidden() )
stream << " message='hidden test'";
else
stream << " message='test skipped because it didn't match the test spec'";
stream << " message='test skipped because it didn|'t match the test spec'";
stream << "]\n";
}