aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest_output_test.py
diff options
context:
space:
mode:
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