Lines Matching refs:subtest
140 static const char *skip_reason(const struct test_suite *t, int subtest) in skip_reason() argument
145 return t->test_cases[subtest >= 0 ? subtest : 0].skip_reason; in skip_reason()
148 static const char *test_description(const struct test_suite *t, int subtest) in test_description() argument
150 if (t->test_cases && subtest >= 0) in test_description()
151 return t->test_cases[subtest].desc; in test_description()
156 static test_fnptr test_function(const struct test_suite *t, int subtest) in test_function() argument
158 if (subtest <= 0) in test_function()
161 return t->test_cases[subtest].run_case; in test_function()
188 static int run_test(struct test_suite *test, int subtest) in run_test() argument
220 err = test_function(test, subtest)(test, subtest); in run_test()
244 static int test_and_print(struct test_suite *t, int subtest) in test_and_print() argument
249 err = run_test(t, subtest); in test_and_print()
255 pr_debug("%s subtest %d:", t->desc, subtest + 1); in test_and_print()
262 const char *reason = skip_reason(t, subtest); in test_and_print()