Lines Matching refs:testp
238 xnupost_test_t testp; in xnupost_list_tests() local
240 testp = &test_list[i]; in xnupost_list_tests()
241 if (testp->xt_test_num == 0) { in xnupost_list_tests()
243 testp->xt_test_num = (uint16_t)++total_post_tests_count; in xnupost_list_tests()
247 testp->xt_config |= XT_CONFIG_IGNORE; in xnupost_list_tests()
248 if (xnupost_should_run_test(testp->xt_test_num)) { in xnupost_list_tests()
249 testp->xt_config &= ~(XT_CONFIG_IGNORE); in xnupost_list_tests()
250 testp->xt_config |= XT_CONFIG_RUN; in xnupost_list_tests()
251 printf("\n[TEST] #%u is marked as ignored", testp->xt_test_num); in xnupost_list_tests()
254 …f("\n[TEST] TOC#%u name: %s expected: %d config: %x\n", testp->xt_test_num, testp->xt_name, testp-… in xnupost_list_tests()
255 testp->xt_config); in xnupost_list_tests()
274 xnupost_test_t testp; in xnupost_run_tests() local
278 testp = &test_list[i]; in xnupost_run_tests()
279 T_BEGIN(testp->xt_name); in xnupost_run_tests()
280 testp->xt_begin_time = mach_absolute_time(); in xnupost_run_tests()
281 testp->xt_end_time = testp->xt_begin_time; in xnupost_run_tests()
287 …if ((testp->xt_config & XT_CONFIG_EXPECT_PANIC) && !(kernel_post_args & POSTARGS_CONTROLLER_AVAILA… in xnupost_run_tests()
291 testp->xt_test_actions = XT_ACTION_SKIPPED; in xnupost_run_tests()
295 if ((testp->xt_config & XT_CONFIG_IGNORE)) { in xnupost_run_tests()
297 testp->xt_test_actions = XT_ACTION_SKIPPED; in xnupost_run_tests()
301 test_retval = testp->xt_func(); in xnupost_run_tests()
314 testp->xt_retval = T_TESTRESULT; in xnupost_run_tests()
315 testp->xt_end_time = mach_absolute_time(); in xnupost_run_tests()
316 if (testp->xt_retval == testp->xt_expected_retval) { in xnupost_run_tests()
317 testp->xt_test_actions = XT_ACTION_PASSED; in xnupost_run_tests()
319 testp->xt_test_actions = XT_ACTION_FAILED; in xnupost_run_tests()
426 xnupost_test_t testp; in xnupost_reset_tests() local
428 testp = &test_list[i]; in xnupost_reset_tests()
429 testp->xt_begin_time = 0; in xnupost_reset_tests()
430 testp->xt_end_time = 0; in xnupost_reset_tests()
431 testp->xt_test_actions = XT_ACTION_NONE; in xnupost_reset_tests()
432 testp->xt_retval = -1; in xnupost_reset_tests()