Lines Matching refs:runner
123 SRunner *runner = calloc(1, sizeof(SRunner)); in srunner_create() local
124 if (runner != NULL) { in srunner_create()
125 runner->suite = suite; in srunner_create()
127 return runner; in srunner_create()
151 handle_failure(SRunner *runner, int verbosity, const char *phase_info) { in handle_failure() argument
152 runner->nfailures++; in handle_failure()
160 srunner_run_all(SRunner *runner, int verbosity) { in srunner_run_all() argument
163 assert(runner != NULL); in srunner_run_all()
164 suite = runner->suite; in srunner_run_all()
169 runner->nchecks++; in srunner_run_all()
174 handle_failure(runner, verbosity, "during setup"); in srunner_run_all()
181 handle_failure(runner, verbosity, "during actual test"); in srunner_run_all()
189 handle_failure(runner, verbosity, "during teardown"); in srunner_run_all()
200 int passed = runner->nchecks - runner->nfailures; in srunner_run_all()
201 double percentage = ((double)passed) / runner->nchecks; in srunner_run_all()
203 printf("%d%%: Checks: %d, Failed: %d\n", display, runner->nchecks, in srunner_run_all()
204 runner->nfailures); in srunner_run_all()
225 srunner_ntests_failed(SRunner *runner) { in srunner_ntests_failed() argument
226 assert(runner != NULL); in srunner_ntests_failed()
227 return runner->nfailures; in srunner_ntests_failed()
231 srunner_free(SRunner *runner) { in srunner_free() argument
232 if (! runner) { in srunner_free()
236 suite_free(runner->suite); in srunner_free()
237 free(runner); in srunner_free()