Merge pull request #2805 from pepsiman:patch-1

PiperOrigin-RevId: 306462650
pull/2818/head
Mark Barolak 5 years ago
commit dcc92d0ab6
  1. 2
      googletest/src/gtest.cc

@ -4091,7 +4091,7 @@ void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream,
part.line_number());
const std::string summary = location + "\n" + part.summary();
*stream << " <failure message=\""
<< EscapeXmlAttribute(summary.c_str())
<< EscapeXmlAttribute(summary)
<< "\" type=\"\">";
const std::string detail = location + "\n" + part.message();
OutputXmlCDataSection(stream, RemoveInvalidXmlCharacters(detail).c_str());

Loading…
Cancel
Save