Does Criterion Not Allow Testing Custom Signals? #517
-
Does Criterion not allow testing custom signals? I can see in the documentation (https://criterion.readthedocs.io/en/master/starter.html#testing-signals) that at least standard C signals can be tested. But are we allowed to test our own custom signals that we raise? In my testing, it seems like we are not allowed to test custom signals, in this case Michaels_Criterion_tests.c:
Michaels_Criterion_tests.h:
signalHandler.c:
signalHandler.h:
EDIT Here is my makefile:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Since you're handling the signal, and the test process isn't dying from said signal, Criterion is marking the test as failed. |
Beta Was this translation helpful? Give feedback.
.signal = TEST_SIGNAL_51
means that Criterion should expect the test to be terminated by that signal.Since you're handling the signal, and the test process isn't dying from said signal, Criterion is marking the test as failed.