Lines Matching refs:subspec
101 static int push_msg(const char *msg, struct test_subspec *subspec) in push_msg() argument
105 tmp = realloc(subspec->expect_msgs, (1 + subspec->expect_msg_cnt) * sizeof(void *)); in push_msg()
110 subspec->expect_msgs = tmp; in push_msg()
111 subspec->expect_msgs[subspec->expect_msg_cnt++] = msg; in push_msg()
379 struct test_subspec *subspec, in validate_case() argument
386 for (i = 0; i < subspec->expect_msg_cnt; i++) { in validate_case()
390 expect_msg = subspec->expect_msgs[i]; in validate_case()
399 "MATCHED MSG: '%s'\n", subspec->expect_msgs[j]); in validate_case()
511 static bool should_do_test_run(struct test_spec *spec, struct test_subspec *subspec) in should_do_test_run() argument
513 if (!subspec->execute) in should_do_test_run()
516 if (subspec->expect_failure) in should_do_test_run()
540 struct test_subspec *subspec = unpriv ? &spec->unpriv : &spec->priv; in run_subtest() local
549 if (!test__start_subtest(subspec->name)) in run_subtest()
598 if (subspec->expect_failure) { in run_subtest()
611 validate_case(tester, subspec, tobj, tprog, err); in run_subtest()
613 if (should_do_test_run(spec, subspec)) { in run_subtest()
629 if (retval != subspec->retval && subspec->retval != POINTER_VALUE) { in run_subtest()
630 PRINT_FAIL("Unexpected retval: %d != %d\n", retval, subspec->retval); in run_subtest()