int main(void){ int fail_num; Suite *s = hash_table_suite(); SRunner *sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); fail_num = srunner_ntests_failed(sr); srunner_free(sr); return (fail_num == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main() { int number_failed; SRunner *sr = srunner_create(hash_table_suite()); srunner_set_fork_status(sr, CK_NOFORK); srunner_run_all(sr, CK_NORMAL); number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }