I have a unit test that exercises code in such a way that it causes an assertion to fail. When an assertion fails, it is expected that the application finishes.
To test that this actually happens, I am using EXPECT_DEATH, and it works.
- The code execution reaches the assertion line
- The assertion fails
- The program finishes
- The test is passed
The problem is that when the program finishes, there is a window reporting that the program stopped working and I need to click "Close the program" for the tests to continue.
I'd need this window not to pop up at all and that the test continue without the need to press any button. Is this possible?
I am using GCC on MS Windows.