silentbicycle / greatest

A C testing library in 1 file. No dependencies, no dynamic allocation. ISC licensed.
ISC License
1.48k stars 108 forks source link

Add `greatest_raise_at_first_fail` and `-a` option. #72

Closed fsaintjacques closed 6 years ago

fsaintjacques commented 6 years ago

This can be used to raise a SIGABRT on the first failing test. This is handy in gdb when assertions are non-trivial to breakpoint (in loops, recursion, callback...) as it'll drop right at the offending assert.

Refactor flags manipulation in option parsing.

Closes #71.

silentbicycle commented 6 years ago

Merged to develop. This will be in the next release. Thanks!