Lines Matching refs:runner
78 SRunner *runner = calloc(1, sizeof(SRunner)); in srunner_create() local
79 if (runner != NULL) { in srunner_create()
80 runner->suite = suite; in srunner_create()
82 return runner; in srunner_create()
86 srunner_set_fork_status(SRunner *runner, int status) in srunner_set_fork_status() argument
107 add_failure(SRunner *runner, int verbosity) in add_failure() argument
109 runner->nfailures++; in add_failure()
117 srunner_run_all(SRunner *runner, int verbosity) in srunner_run_all() argument
121 assert(runner != NULL); in srunner_run_all()
122 suite = runner->suite; in srunner_run_all()
127 runner->nchecks++; in srunner_run_all()
132 add_failure(runner, verbosity); in srunner_run_all()
139 add_failure(runner, verbosity); in srunner_run_all()
147 add_failure(runner, verbosity); in srunner_run_all()
156 int passed = runner->nchecks - runner->nfailures; in srunner_run_all()
157 double percentage = ((double) passed) / runner->nchecks; in srunner_run_all()
160 display, runner->nchecks, runner->nfailures); in srunner_run_all()
171 srunner_ntests_failed(SRunner *runner) in srunner_ntests_failed() argument
173 assert(runner != NULL); in srunner_ntests_failed()
174 return runner->nfailures; in srunner_ntests_failed()
178 srunner_free(SRunner *runner) in srunner_free() argument
180 free(runner->suite); in srunner_free()
181 free(runner); in srunner_free()