summaryrefslogtreecommitdiff
path: root/test/link-timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/link-timeout.c')
-rw-r--r--test/link-timeout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/link-timeout.c b/test/link-timeout.c
index 4095f0a..153acb4 100644
--- a/test/link-timeout.c
+++ b/test/link-timeout.c
@@ -598,7 +598,8 @@ static int test_timeout_link_chain1(struct io_uring *ring)
}
break;
case 2:
- if (cqe->res != -EALREADY) {
+ /* FASTPOLL kernels can cancel successfully */
+ if (cqe->res != -EALREADY && cqe->res != -ETIME) {
fprintf(stderr, "Req %llu got %d\n", cqe->user_data,
cqe->res);
goto err;