mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-02 21:19:33 +01:00
Add tests for #835
Also add ErrnoGuard before `isatty` call, because apparently it can set errno to 25 (ENOTTY).
This commit is contained in:
@@ -48,6 +48,23 @@ PASSED:
|
||||
with expansion:
|
||||
42 == {?}
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
#835 -- errno should not be touched by Catch
|
||||
-------------------------------------------------------------------------------
|
||||
MiscTests.cpp:<line number>
|
||||
...............................................................................
|
||||
|
||||
MiscTests.cpp:<line number>: FAILED:
|
||||
CHECK( f() == 0 )
|
||||
with expansion:
|
||||
1 == 0
|
||||
|
||||
MiscTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( (*__errno_location ()) == 1 )
|
||||
with expansion:
|
||||
1 == 1
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
'Not' checks that should fail
|
||||
-------------------------------------------------------------------------------
|
||||
@@ -9350,6 +9367,6 @@ MiscTests.cpp:<line number>:
|
||||
PASSED:
|
||||
|
||||
===============================================================================
|
||||
test cases: 164 | 118 passed | 44 failed | 2 failed as expected
|
||||
assertions: 957 | 851 passed | 88 failed | 18 failed as expected
|
||||
test cases: 165 | 118 passed | 45 failed | 2 failed as expected
|
||||
assertions: 959 | 852 passed | 89 failed | 18 failed as expected
|
||||
|
||||
|
||||
Reference in New Issue
Block a user