Home | History | Annotate | Download | only in mincore

Lines Matching refs:tc

61 static void setup1(struct test_case_t *tc);
62 static void setup2(struct test_case_t *tc);
63 static void setup3(struct test_case_t *tc);
64 static void setup4(struct test_case_t *tc);
71 void (*setupfunc) (struct test_case_t *tc);
72 } TC[] = {
79 static void mincore_verify(struct test_case_t *tc);
81 int TST_TOTAL = ARRAY_SIZE(TC);
95 mincore_verify(&TC[i]);
102 static void setup1(struct test_case_t *tc)
104 tc->addr = global_pointer + 1;
105 tc->len = global_len;
106 tc->vector = global_vec;
109 void setup2(struct test_case_t *tc)
126 tc->addr = global_pointer;
127 tc->len = global_len;
128 tc->vector = t;
131 static void setup3(struct test_case_t *tc)
133 tc->addr = global_pointer;
134 tc->len = global_len * 2;
136 tc->vector = global_vec;
139 static void setup4(struct test_case_t *tc)
145 tc->addr = global_pointer;
146 tc->len = as_lim.rlim_cur - (rlim_t)global_pointer + pagesize;
147 tc->vector = global_vec;
153 tc->exp_errno = EINVAL;
191 static void mincore_verify(struct test_case_t *tc)
193 if (tc->setupfunc)
194 tc->setupfunc(tc);
196 TEST(mincore(tc->addr, tc->len, tc->vector));
203 if (TEST_ERRNO == tc->exp_errno) {
208 "%d - %s", tc->exp_errno,
209 strerror(tc->exp_errno));