Skip to content

Commit

Permalink
test/reg-fd-only: skip on -ENOENT return from mmap
Browse files Browse the repository at this point in the history
This is most likely because there are no huge pages available, so just
skip the test in that case.

Link: #1207
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Oct 31, 2024
1 parent 3fd36a9 commit becdca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/reg-fd-only.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit becdca8

Please sign in to comment.