Fix GMockOutputTest on Windows.

This commit is contained in:
davidmatson 2022-10-03 15:17:22 -07:00 committed by David Matson
parent 9b0b00a104
commit 25cde5f232
2 changed files with 2 additions and 3 deletions

View File

@ -157,7 +157,7 @@ class GMockOutputTest(gmock_test_utils.TestCase):
def testOutput(self): def testOutput(self):
(output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(COMMAND) (output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(COMMAND)
golden_file = open(GOLDEN_PATH, 'rb') golden_file = open(GOLDEN_PATH, 'rb')
golden = golden_file.read().decode('utf-8') golden = ToUnixLineEnding(golden_file.read().decode('utf-8'))
golden_file.close() golden_file.close()
# On Windows the repository might have been checked out with \r\n line # On Windows the repository might have been checked out with \r\n line
# endings, so normalize it here. # endings, so normalize it here.

View File

@ -309,8 +309,7 @@ Stack trace:
FILE:#: Failure FILE:#: Failure
Value of: (std::pair<int, bool>(42, true)) Value of: (std::pair<int, bool>(42, true))
Expected: is pair (first: is >= 48, second: true) Expected: is pair (first: is >= 48, second: true)
Actual: (42, true) (of type std::pair<int,bool>) Actual: (42, true)
[ FAILED ] GMockOutputTest.PrintsMatcher [ FAILED ] GMockOutputTest.PrintsMatcher
[ FAILED ] GMockOutputTest.UnexpectedCall [ FAILED ] GMockOutputTest.UnexpectedCall
[ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction