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

@@ -1,3 +1,5 @@
Nor would this
This would not be caught previously
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<exe-name> is a <version> host application.
@@ -5,6 +7,16 @@ Run with -? for options
Randomness seeded to: 1
-------------------------------------------------------------------------------
#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
-------------------------------------------------------------------------------
#748 - captures with unexpected exceptions
outside assertions
@@ -1174,6 +1186,6 @@ due to unexpected exception with message:
Why would you throw a std::string?
===============================================================================
test cases: 246 | 186 passed | 56 failed | 4 failed as expected
assertions: 1380 | 1244 passed | 115 failed | 21 failed as expected
test cases: 247 | 186 passed | 57 failed | 4 failed as expected
assertions: 1381 | 1244 passed | 116 failed | 21 failed as expected