Skip to content

Commit

Permalink
test/no-mmap-inval: skip for -ENOENT mmap return
Browse files Browse the repository at this point in the history
See commit becdca8 for details.

Link: #1207
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
axboe committed Oct 31, 2024
1 parent 59c0cb3 commit 5123e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/no-mmap-inval.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(int argc, char *argv[])
p.cq_off.user_addr = (unsigned long long) (uintptr_t) addr;

ret = io_uring_queue_init_params(2, &ring, &p);
if (ret == -EINVAL) {
if (ret == -EINVAL || ret == -ENOENT) {
/* kernel doesn't support SETUP_NO_MMAP */
free(addr);
return T_EXIT_SKIP;
Expand Down

0 comments on commit 5123e95

Please sign in to comment.