summaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2018-03-01 21:19:34 (GMT)
committerPetr Hosek <phosek@google.com>2018-03-01 21:19:34 (GMT)
commit7a2050d4d7eea672716a7d85c2fee2607879862a (patch)
treecabec7cc3abbb314ffd84668cac73be856a96623 /googletest/src
parent447d58b4ee8ea96b4757a5bb5f0b3be75af6c2a1 (diff)
downloadgoogletest-7a2050d4d7eea672716a7d85c2fee2607879862a.zip
googletest-7a2050d4d7eea672716a7d85c2fee2607879862a.tar.gz
googletest-7a2050d4d7eea672716a7d85c2fee2607879862a.tar.bz2
Use a full message in the JSON output for failuresrefs/pull/1486/head
The full message unlike summary also includes stack trace.
Diffstat (limited to 'googletest/src')
-rw-r--r--googletest/src/gtest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index 15cc907..74c43a4 100644
--- a/googletest/src/gtest.cc
+++ b/googletest/src/gtest.cc
@@ -4012,9 +4012,9 @@ void JsonUnitTestResultPrinter::OutputJsonTestInfo(::std::ostream* stream,
const std::string location =
internal::FormatCompilerIndependentFileLocation(part.file_name(),
part.line_number());
- const std::string summary = EscapeJson(location + "\n" + part.summary());
+ const std::string message = EscapeJson(location + "\n" + part.message());
*stream << kIndent << " {\n"
- << kIndent << " \"failure\": \"" << summary << "\",\n"
+ << kIndent << " \"failure\": \"" << message << "\",\n"
<< kIndent << " \"type\": \"\"\n"
<< kIndent << " }";
}