summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-02-28 14:10:10 -0700
committerJens Axboe <axboe@kernel.dk>2020-02-28 14:10:10 -0700
commit74a8d1ec92bceeca3617f680def997e706f25d00 (patch)
treeed914c8b5844114c092d7a67c3d912d46dd7cb06 /test
parent566180209fc4d9e3ee8852315a4411ee0c3d5510 (diff)
downloadliburing-74a8d1ec92bceeca3617f680def997e706f25d00.tar.gz
liburing-74a8d1ec92bceeca3617f680def997e706f25d00.tar.bz2
test/read-write: ensure SQPOLL for non-root just warns
Don't fail the test. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r--test/read-write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/read-write.c b/test/read-write.c
index dfc541a..b62a68e 100644
--- a/test/read-write.c
+++ b/test/read-write.c
@@ -249,6 +249,7 @@ static int test_io(const char *file, int write, int buffered, int sqthread,
fprintf(stderr, "SQPOLL requires root, skipping\n");
warned = 1;
}
+ return 0;
}
ring_flags = IORING_SETUP_SQPOLL;
} else {