Lines Matching refs:tests
10 } tests[] = {
23 for (i = 0; i < ARRAY_SIZE(tests); i++) {
24 size_t name_len = strlen(tests[i].name) + 1;
37 memcpy(attr.prog_name, tests[i].name, ncopy);
40 CHECK((tests[i].success && fd < 0) ||
41 (!tests[i].success && fd >= 0) ||
42 (!tests[i].success && errno != tests[i].expected_errno),
45 fd, tests[i].success, errno, tests[i].expected_errno);
59 memcpy(attr.map_name, tests[i].name, ncopy);
61 CHECK((tests[i].success && fd < 0) ||
62 (!tests[i].success && fd >= 0) ||
63 (!tests[i].success && errno != tests[i].expected_errno),
66 fd, tests[i].success, errno, tests[i].expected_errno);