From becdca8eae1934363b1bf67798a0adb453ab2649 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 30 Oct 2024 19:01:32 -0600 Subject: [PATCH] test/reg-fd-only: skip on -ENOENT return from mmap This is most likely because there are no huge pages available, so just skip the test in that case. Link: https://github.com/axboe/liburing/issues/1207 Signed-off-by: Jens Axboe --- test/reg-fd-only.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/reg-fd-only.c b/test/reg-fd-only.c index 65b7b322a..822ba4089 100644 --- a/test/reg-fd-only.c +++ b/test/reg-fd-only.c @@ -58,7 +58,7 @@ static int test(int nentries, int ring_flags) ret = io_uring_queue_init(nentries, &ring, IORING_SETUP_REGISTERED_FD_ONLY | IORING_SETUP_NO_MMAP | ring_flags); - if (ret == -EINVAL) { + if (ret == -EINVAL || ret == -ENOENT) { no_mmap = 1; return T_EXIT_SKIP; } else if (ret == -ENOMEM) {