Skip to content
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

Fatal errors do not count as failed assertions in XML reporter #990

Closed
philsquared opened this issue Aug 10, 2017 · 0 comments
Closed

Fatal errors do not count as failed assertions in XML reporter #990

philsquared opened this issue Aug 10, 2017 · 0 comments
Labels

Comments

@philsquared
Copy link
Collaborator

Description

A fatal error (signal) gets reported as an overall failure, but if there is failed an assertion in the same test case it is not reporting as failed.

Steps to reproduce

TEST_CASE( "null deref" ) {
    CHECK( false );
    int *x = NULL;
    *x = 1;
}

run with "null defer" -r xml

Extra information

Original reported by Alex Utkin

  • Catch version: All versions with fatal error handling, AFAICS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants