summaryrefslogtreecommitdiff
path: root/test/io_uring-test.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-10 15:08:49 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-10 15:08:49 -0700
commitfa863f6b4ad73c6bea2cabbd50803af78895e1d5 (patch)
tree79662e97a3b0b32b8da41e018ce0c6124eead1f2 /test/io_uring-test.c
parentd5b4ae1c58f49d3d665faadd0e2eddcef9aadc68 (diff)
Fix test cases
- Don't use polled IO for the io_uring-test, that'll fail if the fs/device doesn't suppor it - copy read-in was broken for io_uring-cp Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/io_uring-test.c')
-rw-r--r--test/io_uring-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/io_uring-test.c b/test/io_uring-test.c
index 4bd0892..a13e405 100644
--- a/test/io_uring-test.c
+++ b/test/io_uring-test.c
@@ -30,7 +30,6 @@ int main(int argc, char *argv[])
}
memset(&p, 0, sizeof(p));
- p.flags = IORING_SETUP_IOPOLL;
ret = io_uring_queue_init(QD, &p, &ring);
if (ret < 0) {
@@ -78,7 +77,7 @@ int main(int argc, char *argv[])
done = 0;
pending = ret;
for (i = 0; i < pending; i++) {
- ret = io_uring_get_completion(&ring, &cqe);
+ ret = io_uring_wait_completion(&ring, &cqe);
if (ret < 0) {
fprintf(stderr, "io_uring_get_completion: %s\n", strerror(-ret));
return 1;