summaryrefslogtreecommitdiff
path: root/test/read-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/read-write.c')
-rw-r--r--test/read-write.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/read-write.c b/test/read-write.c
index c3c10f9..c18993c 100644
--- a/test/read-write.c
+++ b/test/read-write.c
@@ -288,7 +288,7 @@ static int has_nonvec_read(void)
ret = io_uring_queue_init(1, &ring, 0);
if (ret) {
- fprintf(stderr, "queue init: %d\n", ret);
+ fprintf(stderr, "queue init failed: %d\n", ret);
exit(ret);
}
@@ -344,7 +344,9 @@ static int test_eventfd_read(void)
fprintf(stderr, "wait_cqe=%d\n", ret);
return 1;
}
- if (cqe->res != sizeof(eventfd_t)) {
+ if (cqe->res == -EINVAL) {
+ fprintf(stdout, "eventfd IO not supported, skipping\n");
+ } else if (cqe->res != sizeof(eventfd_t)) {
fprintf(stderr, "cqe res %d, wanted %ld\n", cqe->res, sizeof(eventfd_t));
return 1;
}