2 ms·
personally I use Glib test (https://developer.gnome.org/glib/stable/glib-Testing.html https://developer.gnome.org/glib/stable/glib-Testing.html) for c testing,
by lsiebert 11y ago
personally I use Glib test (https://developer.gnome.org/glib/stable/glib-Testing.html 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?
- Snaipe 11y agoBy 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.