-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test not failing when exception is thrown (in v1.9.0) #885
Comments
Well, that was an embarrassing mistake. The underlying cause was that to prevent double reporting of exceptions when using I am going to tag this with a revisit, because I need to take a look at why this didn't show up in Catch's self-test, but 1.9.1 is out and it should be fixed. |
I figured out why it didn't show up -- Phil approved the differences caused by the bug by mistake in 250f0ee... |
Yup - sorry about that. Thought it was something else. |
This fixes a nasty bug where Catch *ignored* unexpected exceptions: catchorg/Catch2#885 Didn't affect us because we haven't written any new tests since upgrade to 1.9.0.
Description
I was doing some TDD with new Catch version (1.9.0).
When expecting that tests failed, they were passing.
Reducing the problem to minimum, discovered that the
(expected) exception was been thrown. But the tests was passing.
I also tested with release 1.8.2 and it worked fine.
Steps to reproduce
This minimal code can reproduce the error (i hope):
Extra information
The text was updated successfully, but these errors were encountered: