aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest_output_test.py
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-05-29 19:46:51 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-05-29 19:46:51 +0000
commit1bd424d9608d85fc6b705a2370ed86db3118dcf6 (patch)
treed3e3c6c787c0daaa50e53cc8fbd9233e90d93972 /test/gtest_output_test.py
parent8de91f8f8374f49240b379e2328de9121837bae8 (diff)
downloadgoogletest-1bd424d9608d85fc6b705a2370ed86db3118dcf6.tar.gz
googletest-1bd424d9608d85fc6b705a2370ed86db3118dcf6.tar.bz2
googletest-1bd424d9608d85fc6b705a2370ed86db3118dcf6.zip
Adds missing copyright in test/gtest-test-part_test.cc (by Markus Heule). Minor format adjustments.
Diffstat (limited to 'test/gtest_output_test.py')
-rwxr-xr-xtest/gtest_output_test.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/gtest_output_test.py b/test/gtest_output_test.py
index 6cff1623..2751fa66 100755
--- a/test/gtest_output_test.py
+++ b/test/gtest_output_test.py
@@ -253,8 +253,13 @@ class GTestOutputTest(unittest.TestCase):
def testOutput(self):
output = GetOutputOfAllCommands()
+
golden_file = open(GOLDEN_PATH, 'rb')
- golden = golden_file.read()
+ # A mis-configured source control system can cause \r appear in EOL
+ # sequences when we read the golden file irrespective of an operating
+ # system used. Therefore, we need to strip those \r's from newlines
+ # unconditionally.
+ golden = ToUnixLineEnding(golden_file.read())
golden_file.close()
# We want the test to pass regardless of death tests being