summaryrefslogtreecommitdiffstats
path: root/googletest
diff options
context:
space:
mode:
authorMark Barolak <mbar@google.com>2020-04-16 17:33:10 (GMT)
committerMark Barolak <mbar@google.com>2020-04-16 17:33:10 (GMT)
commitdcc92d0ab6c4ce022162a23566d44f673251eee4 (patch)
treecea13c81aeb5676dfda3edf68e76c490f4692654 /googletest
parent71d5df6c6b6769f13885a7a05dd6721a21e20c96 (diff)
parent0b6d567619fe353c2de5bc6d6f059cd7cb79e19a (diff)
downloadgoogletest-dcc92d0ab6c4ce022162a23566d44f673251eee4.zip
googletest-dcc92d0ab6c4ce022162a23566d44f673251eee4.tar.gz
googletest-dcc92d0ab6c4ce022162a23566d44f673251eee4.tar.bz2
Merge pull request #2805 from pepsiman:patch-1
PiperOrigin-RevId: 306462650
Diffstat (limited to 'googletest')
-rw-r--r--googletest/src/gtest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index 4c8b42f..5324674 100644
--- a/googletest/src/gtest.cc
+++ b/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());