Lines Matching defs:state
6 static void clear_test_state(struct test_state *state)
8 state->error_cnt = 0;
9 state->sub_succ_cnt = 0;
10 state->skip_cnt = 0;
15 struct test_state *state = env.test_state;
18 * error due to the fact that we are cleaning the test state after
25 if (!ASSERT_EQ(state->skip_cnt, 0, "skip_cnt_check"))
27 if (!ASSERT_EQ(state->error_cnt, 0, "error_cnt_check"))
29 if (!ASSERT_EQ(state->subtest_num, 1, "subtest_num_check"))
31 clear_test_state(state);
41 if (!ASSERT_EQ(state->skip_cnt, 2, "skip_cnt_check"))
43 if (!ASSERT_EQ(state->subtest_num, 3, "subtest_num_check"))
45 clear_test_state(state);
51 if (!ASSERT_EQ(state->error_cnt, 1, "error_cnt_check"))
53 if (!ASSERT_EQ(state->subtest_num, 4, "subtest_num_check"))
55 clear_test_state(state);