Lines Matching refs:tc
73 static struct test_case tc[] = { variable
143 const char *fname = strstr(tc[i].fname, "fsetxattr02") + OFFSET; in verify_fsetxattr()
146 if (tc[i].needskeyset) { in verify_fsetxattr()
147 SAFE_FSETXATTR(tc[i].fd, tc[i].key, tc[i].value, tc[i].size, in verify_fsetxattr()
151 TEST(fsetxattr(tc[i].fd, tc[i].key, tc[i].value, tc[i].size, in verify_fsetxattr()
152 tc[i].flags)); in verify_fsetxattr()
159 if (!tc[i].exp_err) { in verify_fsetxattr()
168 SAFE_FREMOVEXATTR(tc[i].fd, tc[i].key); in verify_fsetxattr()
181 if (tc[i].exp_err != TST_ERR) { in verify_fsetxattr()
184 fname, tst_strerrno(tc[i].exp_err)); in verify_fsetxattr()
189 if (tc[i].needskeyset) in verify_fsetxattr()
190 SAFE_FREMOVEXATTR(tc[i].fd, tc[i].key); in verify_fsetxattr()
211 for (i = 0; i < ARRAY_SIZE(tc); i++) { in setup()
213 if (!tc[i].issocket) { in setup()
214 tc[i].fd = SAFE_OPEN(tc[i].fname, tc[i].fflags, NULL); in setup()
223 tc[i].fd = SAFE_SOCKET(AF_UNIX, SOCK_STREAM, 0); in setup()
227 strncpy(sun.sun_path, tc[i].fname, sizeof(sun.sun_path) - 1); in setup()
229 SAFE_BIND(tc[i].fd, (const struct sockaddr *) &sun, in setup()
238 for (i = 0; i < ARRAY_SIZE(tc); i++) { in cleanup()
239 if (tc[i].fd > 0) in cleanup()
240 SAFE_CLOSE(tc[i].fd); in cleanup()
253 .tcnt = ARRAY_SIZE(tc),