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

Windows outputs "Debug Error - Abort() was called" on every failed test #42

Closed
ataulien opened this issue Feb 28, 2020 · 2 comments
Closed
Labels

Comments

@ataulien
Copy link

When compiling with MSVC, Windows outputs this on every failing test:

image

This can easily be disabled by calling the following (See MSDN):

_set_abort_behavior(0, _WRITE_ABORT_MSG);

I'm just not sure where, otherwise this would be a PR!

An other solution would be to simply not use abort() on windows, but a special exit-code.

@mity
Copy link
Owner

mity commented Feb 28, 2020

Thanks. I'll take a look at it.

However, are you sure it is for every failing test? abort() is only used if TEST_ASSERT() fails. When the test sticks to TEST_CHECK(), the test continues but will eventually exit with non-zero (when assuming the default behavior without --no-exec; with --no-exec the test is just a function call).

@mity mity added the bug label Feb 28, 2020
@mity mity closed this as completed in d246167 Feb 28, 2020
@ataulien
Copy link
Author

Ah, you're right, I should really be using TEST_CHECK! Thanks for the reminder!

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