Add tests for #1514

If the regression comes back, it will only be caught by approvals,
but that's better than nothing.
This commit is contained in:
Martin Hořeňovský
2019-03-02 21:22:41 +01:00
parent 7d2451f119
commit 28db5ed4c9
7 changed files with 83 additions and 14 deletions

View File

@@ -133,6 +133,18 @@ Compilation.tests.cpp:<line number>: PASSED:
with expansion:
[1403 helper] == [1403 helper]
Nor would this
This would not be caught previously
-------------------------------------------------------------------------------
#1514: stderr/stdout is not captured in tests aborted by an exception
-------------------------------------------------------------------------------
Tricky.tests.cpp:<line number>
...............................................................................
Tricky.tests.cpp:<line number>: FAILED:
explicitly with message:
1514
-------------------------------------------------------------------------------
#1548
-------------------------------------------------------------------------------
@@ -328,12 +340,7 @@ Condition.tests.cpp:<line number>: FAILED:
with expansion:
false
Condition.tests.cpp:<line number>: FAILED:
CHECK_FALSE( true )
with expansion:
!true
===============================================================================
test cases: 16 | 13 passed | 1 failed | 2 failed as expected
test cases: 17 | 13 passed | 2 failed | 2 failed as expected
assertions: 40 | 33 passed | 4 failed | 3 failed as expected