Lines Matching refs:tc
43 struct test_case tc[] = {
285 if (!tc[i].enabled && !tc[i].force) {
287 if (tc[i].always == 0)
288 skipped(tc[i]);
290 skipped_fail(tc[i]);
295 if (tc[i].needregister && tc[i].enabled) {
296 ret = sys_membarrier(tc[i].needregister, 0);
299 tc[i].testname);
303 TEST(sys_membarrier(tc[i].command, tc[i].flags));
307 if (tc[i].enabled && !tc[i].force) {
309 if (TST_RET >= 0 && tc[i].exp_ret == TST_RET)
310 passed_ok(tc[i]);
313 if (tc[i].exp_ret == TST_RET)
314 failed_ok(tc[i]);
316 failed_not_ok(tc[i], TST_RET, TST_ERR);
322 if (!tc[i].enabled && tc[i].force) {
325 passed_unexpec(tc[i]);
328 if (tc[i].force_exp_errno == TST_ERR)
329 failed_ok_unsupported(tc[i]);
331 failed_unexpec(tc[i], TST_RET, TST_ERR);
337 if (tc[i].enabled && tc[i].force) {
340 if (tc[i].exp_ret == TST_RET)
341 passed_ok(tc[i]);
343 passed_unexpec(tc[i]);
348 if (tc[i].exp_ret == TST_RET) {
350 if (tc[i].exp_errno == TST_ERR)
351 failed_ok(tc[i]);
353 failed_unexpec(tc[i], TST_RET, TST_ERR);
357 failed_unexpec(tc[i], TST_RET, TST_ERR);
391 for (i = 0; i < ARRAY_SIZE(tc); i++) {
392 if ((tc[i].command > 0) && (ret & tc[i].command))
393 tc[i].enabled = 1;
397 if (tc[i].change_exp_errno && tc[i].enabled == 0) {
398 if (tst_kvercmp(tc[i].change_kernver[0],
399 tc[i].change_kernver[1],
400 tc[i].change_kernver[2]) < 0)
401 tc[i].force_exp_errno = tc[i].change_exp_errno;
409 .tcnt = ARRAY_SIZE(tc),