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