Re:Show HN: Writing modern C unit tests with Criterion
by lsiebert on Monday August 31, 2015 @06:42PM
(#10149573)
personally I use Glib test (https://developer.gnome.org/glib/stable/glib-Testing.html) for c testing, but I'll check this out. Does this let you test what a program sends to stdout and stderr, and let you trap a subprocess to test that the program exits right?
[ Parent
| on HN ]
Re:Show HN: Writing modern C unit tests with Criterion
by Snaipe on Monday August 31, 2015 @07:00PM
(#10149646)
By default, if the test raises any signal or exits with anything other than 0, the test fails.
Otherwise, you can't (yet!) test if the code exits with a specific value nor simply redirect input/output, but I'll be sure to take these suggestions into account, thanks!
Both will be implemented quite soon.