int main(void) { int n; SRunner *sr; sr = srunner_create(make_add_suite()); srunner_run_all(sr, CK_NORMAL); n = srunner_ntests_failed(sr); srunner_free(sr); return (n == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(void) { int n; SRunner *sr; sr=srunner_create(make_add_suite()); srunner_run_all(sr,CK_NORMAL); n=srunner_ntests_failed(sr); srunner_free(sr); return n==0?0:-1; }