Home | History | Annotate | Download | only in ppoll

Lines Matching refs:tc

213 	struct test_case *tc = &tcase[i];
216 if (tc->ts) {
217 memcpy(&ts, tc->ts, sizeof(ts));
221 tst_res(TINFO, "case %s", tc->desc);
224 if (tc->sigmask_cur) {
225 if (sigprocmask(SIG_SETMASK, tc->sigmask_cur, NULL) == -1)
228 if (tc->sigint_count > 0) {
229 pid = create_sig_proc(SIGINT, tc->sigint_count,
230 tc->sigint_delay);
235 sys_ret = tst_syscall(__NR_ppoll, tc->fds, tc->nfds, tsp,
236 tc->sigmask, SIGSETSIZE);
240 if (tc->sigmask_cur) {
250 if (tc->expect_revents) {
251 if (tc->fds[0].revents == tc->expect_revents)
252 tst_res(TPASS, "revents=0x%04x", tc->expect_revents);
255 tc->fds[0].revents, tc->expect_revents);
257 if (tc->ret >= 0 && tc->ret == sys_ret) {
259 } else if (tc->ret == -1 && sys_ret == -1 && sys_errno == tc->err) {
264 " exp_errno: %s (%d)", sys_ret, tc->ret,
266 tst_strerrno(tc->err), tc->err);