-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Terminal color is not reset when a test fails with some signal #122
Comments
Couldn't reproduce on Windows, but I checked the logic aaand:
Do you get the |
Yes, I get a signal. What do you mean by not caught? You can always install signal handlers for SIGSEGV and do the correct thing when detected. The only signal that cannot be caught by an application is SIGKILL. Windows has fake signals, so it is not a good idea to test there for this. Test on linux. |
By "not caught" I mean environments such as virtual machines with some linux where I've been unable to catch signals from crashes. But I'll reopen this issue to test it at some point in time. |
This is also happening for me when I kill it with Ctrl-C. I'm using doctest version 2.0.1. |
Hi Just wanted to +1. Mac. |
@DenisYaroshevskiy I just pushed a change - let me know if it works for you! |
@onqtam - didn't help. |
@DenisYaroshevskiy I did - but in the Can you confirm that you indeed tried the |
@onqtam - I used the link from the docs, so I doubt it. Can you give me a link to a new file? |
@DenisYaroshevskiy https://github.com/onqtam/doctest/blob/dev/doctest/doctest.h (the |
@onqtam - yes, now it fixed, thanks. Thanks for letting me know about your test library - I'd use it from now on for my projects since it compiles so fast even with main in regular tests! |
This simple test code:
TEST_CASE("failure") { int *a=nullptr; *a=5; }
can be used to reproduce the problem.
I'm testing on OS X at the moment. Don't know if this reproduces on Linux/Windows...
The text was updated successfully, but these errors were encountered: