mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
Fixed escaping of ' in TeamCity reporter
This commit is contained in:
parent
1cbc4f2c9c
commit
3e0c501812
@ -32,7 +32,7 @@ namespace Catch {
|
|||||||
static std::string escape( std::string const& str ) {
|
static std::string escape( std::string const& str ) {
|
||||||
std::string escaped = str;
|
std::string escaped = str;
|
||||||
replaceInPlace( escaped, "|", "||" );
|
replaceInPlace( escaped, "|", "||" );
|
||||||
replaceInPlace( escaped, "\'", "|\'" );
|
replaceInPlace( escaped, "'", "|'" );
|
||||||
replaceInPlace( escaped, "\n", "|n" );
|
replaceInPlace( escaped, "\n", "|n" );
|
||||||
replaceInPlace( escaped, "\r", "|r" );
|
replaceInPlace( escaped, "\r", "|r" );
|
||||||
replaceInPlace( escaped, "[", "|[" );
|
replaceInPlace( escaped, "[", "|[" );
|
||||||
@ -56,7 +56,7 @@ namespace Catch {
|
|||||||
if( testInfo.isHidden() )
|
if( testInfo.isHidden() )
|
||||||
stream << " message='hidden test'";
|
stream << " message='hidden test'";
|
||||||
else
|
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";
|
stream << "]\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user