test/io_uring_register: Expect ENOMEM or EFAULT from __sys_io_uring_register
The code was only handling ENOMEM, but the function was getting an
EFAULT, which a later print mentions as being an expected value anyway.
@@ -254,6 +254,10 @@ test_memlock_exceeded(int fd)
iov.iov_len /= 2;
continue;
}
+ if (errno == EFAULT) {
+ free(buf);
+ return 0;
+ }
printf("expected success or EFAULT, got %d\n", errno);
free(buf);
return 1;
