aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authorJoshua Cannon <joshdcannon@gmail.com>2019-10-07 13:56:47 -0500
committerJoshua Cannon <joshdcannon@gmail.com>2019-10-07 14:04:31 -0500
commit2ed2211db99ab4f3e4d11078c78ad48a5b692f02 (patch)
treede47cf3bb02481fe2c547ff3125f90b5401fd4d8 /googletest/src
parent76a560c81cfe75cc6f9ff0c4a37ea3d1ce1229ed (diff)
downloadgoogletest-2ed2211db99ab4f3e4d11078c78ad48a5b692f02.tar.gz
googletest-2ed2211db99ab4f3e4d11078c78ad48a5b692f02.tar.bz2
googletest-2ed2211db99ab4f3e4d11078c78ad48a5b692f02.zip
Use FormatFileLocation for streaming file and line
Diffstat (limited to 'googletest/src')
-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 178317a6..9c5bcc6b 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