summaryrefslogtreecommitdiffstats
path: root/googletest/src/gtest-test-part.cc
diff options
context:
space:
mode:
authorJoshua Cannon <joshdcannon@gmail.com>2019-10-07 18:56:47 (GMT)
committerJoshua Cannon <joshdcannon@gmail.com>2019-10-07 19:04:31 (GMT)
commit2ed2211db99ab4f3e4d11078c78ad48a5b692f02 (patch)
treede47cf3bb02481fe2c547ff3125f90b5401fd4d8 /googletest/src/gtest-test-part.cc
parent76a560c81cfe75cc6f9ff0c4a37ea3d1ce1229ed (diff)
downloadgoogletest-2ed2211db99ab4f3e4d11078c78ad48a5b692f02.zip
googletest-2ed2211db99ab4f3e4d11078c78ad48a5b692f02.tar.gz
googletest-2ed2211db99ab4f3e4d11078c78ad48a5b692f02.tar.bz2
Use FormatFileLocation for streaming file and linerefs/pull/2497/head
Diffstat (limited to 'googletest/src/gtest-test-part.cc')
-rw-r--r--googletest/src/gtest-test-part.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/src/gtest-test-part.cc b/googletest/src/gtest-test-part.cc
index 178317a..9c5bcc6 100644
--- a/googletest/src/gtest-test-part.cc
+++ b/googletest/src/gtest-test-part.cc
@@ -31,6 +31,7 @@
// The Google C++ Testing and Mocking Framework (Google Test)
#include "gtest/gtest-test-part.h"
+#include "gtest/internal/gtest-port.h"
#include "src/gtest-internal-inl.h"
namespace testing {
@@ -46,7 +47,7 @@ std::string TestPartResult::ExtractSummary(const char* message) {
// Prints a TestPartResult object.
std::ostream& operator<<(std::ostream& os, const TestPartResult& result) {
- return os << result.file_name() << ":" << result.line_number() << ": "
+ return os << internal::FormatFileLocation(result.file_name(), result.line_number()) << " "
<< (result.type() == TestPartResult::kSuccess
? "Success"
: result.type() == TestPartResult::kSkip