Lines Matching refs:subtest
162 static const char *skip_reason(const struct test_suite *t, int subtest)
167 return t->test_cases[subtest >= 0 ? subtest : 0].skip_reason;
170 static const char *test_description(const struct test_suite *t, int subtest)
172 if (t->test_cases && subtest >= 0)
173 return t->test_cases[subtest].desc;
178 static test_fnptr test_function(const struct test_suite *t, int subtest)
180 if (subtest <= 0)
183 return t->test_cases[subtest].run_case;
210 static int run_test(struct test_suite *test, int subtest)
242 err = test_function(test, subtest)(test, subtest);
266 static int test_and_print(struct test_suite *t, int subtest)
271 err = run_test(t, subtest);
277 pr_debug("%s subtest %d:", t->desc, subtest + 1);
284 const char *reason = skip_reason(t, subtest);
413 * For subtest we print additional '.x' in number.