summaryrefslogtreecommitdiff
path: root/test/poll-v-poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/poll-v-poll.c')
-rw-r--r--test/poll-v-poll.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/poll-v-poll.c b/test/poll-v-poll.c
index 61d40dd..c8ba6f1 100644
--- a/test/poll-v-poll.c
+++ b/test/poll-v-poll.c
@@ -259,8 +259,13 @@ static int do_test_epoll(struct io_uring *ring, int iou_epoll_add)
return 1;
}
} else {
- if (iou_epoll_ctl(ring, fd, pipe1[0], &ev))
+ ret = iou_epoll_ctl(ring, fd, pipe1[0], &ev);
+ if (ret == -EINVAL) {
+ fprintf(stdout, "epoll not supported, skipping\n");
+ return 0;
+ } else if (ret < 0) {
return 1;
+ }
}
td.ring = ring;