Fix multiple \n characters in xml file when using GTEST_SKIP.
This commit is contained in:
parent
d28d05cc64
commit
23dadb8472
@ -2191,7 +2191,9 @@ std::string AppendUserMessage(const std::string& gtest_msg,
|
||||
if (user_msg_string.empty()) {
|
||||
return gtest_msg;
|
||||
}
|
||||
|
||||
if (gtest_msg.empty()) {
|
||||
return user_msg_string;
|
||||
}
|
||||
return gtest_msg + "\n" + user_msg_string;
|
||||
}
|
||||
|
||||
@ -3113,7 +3115,7 @@ static std::string FormatTestSuiteCount(int test_suite_count) {
|
||||
static const char * TestPartResultTypeToString(TestPartResult::Type type) {
|
||||
switch (type) {
|
||||
case TestPartResult::kSkip:
|
||||
return "Skipped";
|
||||
return "Skipped\n";
|
||||
case TestPartResult::kSuccess:
|
||||
return "Success";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user