Searched refs:poll_fd (Results 1 – 1 of 1) sorted by relevance
74 struct pollfd poll_fd; in TEST() local76 poll_fd.revents = 0; in TEST()77 poll_fd.events = POLLIN; in TEST()79 case 0: poll_fd.fd = cap_fd_ro; break; in TEST()80 case 1: poll_fd.fd = cap_fd_wo; break; in TEST()81 case 2: poll_fd.fd = cap_fd_rw; break; in TEST()84 EXPECT_OK(poll(&poll_fd, 1, 400)); in TEST()85 EXPECT_EQ(0, (poll_fd.revents & POLLIN)); in TEST()86 EXPECT_NE(0, (poll_fd.revents & POLLNVAL)); in TEST()89 poll_fd.fd = cap_fd_all; in TEST()[all …]