diff --git a/test/no-mmap-inval.c b/test/no-mmap-inval.c index 22f322ac0..bfad4b60a 100644 --- a/test/no-mmap-inval.c +++ b/test/no-mmap-inval.c @@ -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;