Adds missing copyright in test/gtest-test-part_test.cc (by Markus Heule). Minor format adjustments.

This commit is contained in:
zhanyong.wan
2009-05-29 19:46:51 +00:00
parent 8de91f8f83
commit 1bd424d960
6 changed files with 43 additions and 5 deletions

View File

@@ -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