cgreen
cgreen copied to clipboard
Test signal
Is there a way to test that a test terminates with a particular signal ? I want to test my functions abort when expected.
If you mean signals like SIGHUP, SIGINT etc. no there isn't. The only thing that happens after a test has exited is to check for expected calls to match. If a test aborts using a signal you will get a test exception and a reporter call indicating this.
I think it would be possible to add a new type of assertions that would make that possible, but currently no.