Lines Matching refs:testcase
92 testcase_run_bare_(const struct testcase_t *testcase) in testcase_run_bare_() argument
96 if (testcase->setup) { in testcase_run_bare_()
97 env = testcase->setup->setup_fn(testcase); in testcase_run_bare_()
105 testcase->fn(env); in testcase_run_bare_()
108 if (testcase->setup) { in testcase_run_bare_()
109 if (testcase->setup->cleanup_fn(testcase, env) == 0) in testcase_run_bare_()
122 const struct testcase_t *testcase) in testcase_run_forked_() argument
148 commandname, verbosity_flag, group->prefix, testcase->name); in testcase_run_forked_()
189 test_r = testcase_run_bare_(testcase); in testcase_run_forked_()
224 const struct testcase_t *testcase) argument
228 if (testcase->flags & (TT_SKIP|TT_OFF_BY_DEFAULT)) {
231 group->prefix, testcase->name,
232 (testcase->flags & TT_SKIP) ? "SKIPPED" : "DISABLED");
238 printf("%s%s: ", group->prefix, testcase->name);
242 cur_test_name = testcase->name;
246 if ((testcase->flags & TT_FORK) && !(opt_forked||opt_nofork)) {
247 outcome = testcase_run_forked_(group, testcase);
252 outcome = testcase_run_bare_(testcase);
266 printf("\n [%s FAILED]\n", testcase->name);
288 struct testcase_t *testcase = &groups[i].cases[j]; local
290 groups[i].prefix, testcase->name);
293 if (testcase->flags & TT_OFF_BY_DEFAULT)
295 else if (testcase->flags & TT_SKIP)
302 testcase->flags |= flag;
304 testcase->flags &= ~flag;