Lines Matching defs:test_state
2376 static int cmocka_run_one_tests(struct CMUnitTestState *test_state)
2391 if (test_state->test->setup_func != NULL) {
2393 test_state->check_point = check_point_allocated_blocks();
2395 rc = cmocka_run_one_test_or_fixture(test_state->test->name,
2397 test_state->test->setup_func,
2399 &test_state->state,
2400 test_state->check_point);
2402 test_state->status = CM_TEST_ERROR;
2413 rc = cmocka_run_one_test_or_fixture(test_state->test->name,
2414 test_state->test->test_func,
2417 &test_state->state,
2420 test_state->status = CM_TEST_PASSED;
2423 test_state->status = CM_TEST_SKIPPED;
2426 test_state->status = CM_TEST_FAILED;
2432 test_state->runtime = 0.0;
2436 test_state->runtime = cm_secdiff(finish, start);
2440 if (rc == 0 && test_state->test->teardown_func != NULL) {
2441 rc = cmocka_run_one_test_or_fixture(test_state->test->name,
2444 test_state->test->teardown_func,
2445 &test_state->state,
2446 test_state->check_point);
2448 test_state->status = CM_TEST_ERROR;
2453 test_state->error_message = cm_error_message;