Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTerminal color is not reset when a test fails with some signal #122
Comments
This comment has been minimized.
This comment has been minimized.
Couldn't reproduce on Windows, but I checked the logic aaand:
Do you get the |
onqtam
closed this
Apr 30, 2018
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
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. |
onqtam
reopened this
May 3, 2018
This comment has been minimized.
This comment has been minimized.
patryk-oleniuk
commented
Jul 26, 2018
•
This comment has been minimized.
This comment has been minimized.
piluke
commented
Nov 21, 2018
This is also happening for me when I kill it with Ctrl-C. I'm using doctest version 2.0.1. |
This comment has been minimized.
This comment has been minimized.
DenisYaroshevskiy
commented
Feb 9, 2019
Hi Just wanted to +1. Mac. |
This comment has been minimized.
This comment has been minimized.
@DenisYaroshevskiy I just pushed a change - let me know if it works for you! |
This comment has been minimized.
This comment has been minimized.
DenisYaroshevskiy
commented
Feb 9, 2019
@onqtam - didn't help. |
This comment has been minimized.
This comment has been minimized.
@DenisYaroshevskiy I did - but in the Can you confirm that you indeed tried the |
This comment has been minimized.
This comment has been minimized.
DenisYaroshevskiy
commented
Feb 9, 2019
@onqtam - I used the link from the docs, so I doubt it. Can you give me a link to a new file? |
This comment has been minimized.
This comment has been minimized.
@DenisYaroshevskiy https://github.com/onqtam/doctest/blob/dev/doctest/doctest.h (the |
This comment has been minimized.
This comment has been minimized.
DenisYaroshevskiy
commented
Feb 9, 2019
@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! |
obfuscated commentedApr 9, 2018
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...