summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-13 11:40:55 -0600
committerJens Axboe <axboe@kernel.dk>2022-05-16 09:33:32 -0600
commit797439af0962b65451425032c1559f0800fca13e (patch)
treed3290a1d561507311a4014b4d603d3e0cd9e92a4
parent707550cb0d7c60caa1f788cb416ea52c5a1a4535 (diff)
downloadliburing-797439af0962b65451425032c1559f0800fca13e.tar.gz
liburing-797439af0962b65451425032c1559f0800fca13e.tar.bz2
test/nop: make less verbose and don't fail on older kernelsbig-sqe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/nop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/nop.c b/test/nop.c
index 59da22c..ce223b3 100644
--- a/test/nop.c
+++ b/test/nop.c
@@ -137,6 +137,8 @@ static int test_ring(unsigned flags)
p.flags = flags;
ret = io_uring_queue_init_params(8, &ring, &p);
if (ret) {
+ if (ret == -EINVAL)
+ return 0;
fprintf(stderr, "ring setup failed: %d\n", ret);
return 1;
}
@@ -166,14 +168,13 @@ int main(int argc, char *argv[])
return 0;
FOR_ALL_TEST_CONFIGS {
- fprintf(stderr, "Testing %s config\n", IORING_GET_TEST_CONFIG_DESCRIPTION());
ret = test_ring(IORING_GET_TEST_CONFIG_FLAGS());
if (ret) {
- fprintf(stderr, "Normal ring test failed\n");
+ fprintf(stderr, "Normal ring test failed: %s\n",
+ IORING_GET_TEST_CONFIG_DESCRIPTION());
return ret;
}
}
- fprintf(stderr, "PASS\n");
return 0;
}