Lines Matching refs:subtest
177 static const char *skip_reason(const struct test_suite *t, int subtest) in skip_reason() argument
182 return t->test_cases[subtest >= 0 ? subtest : 0].skip_reason; in skip_reason()
185 static const char *test_description(const struct test_suite *t, int subtest) in test_description() argument
187 if (t->test_cases && subtest >= 0) in test_description()
188 return t->test_cases[subtest].desc; in test_description()
193 static test_fnptr test_function(const struct test_suite *t, int subtest) in test_function() argument
195 if (subtest <= 0) in test_function()
198 return t->test_cases[subtest].run_case; in test_function()
229 int subtest; member
239 err = test_function(child->test, child->subtest)(child->test, child->subtest); in run_test_child()
245 static int print_test_result(struct test_suite *t, int i, int subtest, int result, int width) in print_test_result() argument
250 pr_info("%3d.%1d: %-*s:", i + 1, subtest + 1, subw, test_description(t, subtest)); in print_test_result()
252 pr_info("%3d: %-*s:", i + 1, width, test_description(t, subtest)); in print_test_result()
259 const char *reason = skip_reason(t, subtest); in print_test_result()
280 int subi = child_test->subtest; in finish_test()
368 (*child)->subtest = subi; in start_test()