forked from kyfx/googletest
Automated Code Change
PiperOrigin-RevId: 782277586 Change-Id: Idd7ffd0a585fa8b307ecafb8b3d53abbf124a774
This commit is contained in:
parent
3983f67e32
commit
309dab8d4b
|
@ -713,7 +713,7 @@ std::string UnitTestOptions::GetAbsolutePathToOutputFile() {
|
||||||
const char* const gtest_output_flag = s.c_str();
|
const char* const gtest_output_flag = s.c_str();
|
||||||
|
|
||||||
std::string format = GetOutputFormat();
|
std::string format = GetOutputFormat();
|
||||||
if (format.empty()) format = std::string(kDefaultOutputFormat);
|
if (format.empty()) format = kDefaultOutputFormat;
|
||||||
|
|
||||||
const char* const colon = strchr(gtest_output_flag, ':');
|
const char* const colon = strchr(gtest_output_flag, ':');
|
||||||
if (colon == nullptr)
|
if (colon == nullptr)
|
||||||
|
@ -4355,8 +4355,8 @@ void XmlUnitTestResultPrinter::OutputXmlTestResult(::std::ostream* stream,
|
||||||
internal::FormatCompilerIndependentFileLocation(part.file_name(),
|
internal::FormatCompilerIndependentFileLocation(part.file_name(),
|
||||||
part.line_number());
|
part.line_number());
|
||||||
const std::string summary = location + "\n" + part.summary();
|
const std::string summary = location + "\n" + part.summary();
|
||||||
*stream << " <skipped message=\""
|
*stream << " <skipped message=\"" << EscapeXmlAttribute(summary)
|
||||||
<< EscapeXmlAttribute(summary.c_str()) << "\">";
|
<< "\">";
|
||||||
const std::string detail = location + "\n" + part.message();
|
const std::string detail = location + "\n" + part.message();
|
||||||
OutputXmlCDataSection(stream, RemoveInvalidXmlCharacters(detail).c_str());
|
OutputXmlCDataSection(stream, RemoveInvalidXmlCharacters(detail).c_str());
|
||||||
*stream << "</skipped>\n";
|
*stream << "</skipped>\n";
|
||||||
|
|
Loading…
Reference in New Issue