mirror of
https://github.com/google/googletest.git
synced 2025-12-06 16:57:00 +08:00
Fix GMockOutputTest on Windows.
This commit is contained in:
parent
9b0b00a104
commit
25cde5f232
@ -157,7 +157,7 @@ class GMockOutputTest(gmock_test_utils.TestCase):
|
||||
def testOutput(self):
|
||||
(output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(COMMAND)
|
||||
golden_file = open(GOLDEN_PATH, 'rb')
|
||||
golden = golden_file.read().decode('utf-8')
|
||||
golden = ToUnixLineEnding(golden_file.read().decode('utf-8'))
|
||||
golden_file.close()
|
||||
# On Windows the repository might have been checked out with \r\n line
|
||||
# endings, so normalize it here.
|
||||
|
||||
@ -309,8 +309,7 @@ Stack trace:
|
||||
FILE:#: Failure
|
||||
Value of: (std::pair<int, bool>(42, 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.UnexpectedCall
|
||||
[ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user