summaryrefslogtreecommitdiff
path: root/test/io_uring-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/io_uring-test.c')
-rw-r--r--test/io_uring-test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/io_uring-test.c b/test/io_uring-test.c
index caca379..fe0098c 100644
--- a/test/io_uring-test.c
+++ b/test/io_uring-test.c
@@ -74,10 +74,14 @@ int main(int argc, char *argv[])
}
done++;
+ ret = 0;
if (cqe->res != 4096) {
fprintf(stderr, "ret=%d, wanted 4096\n", cqe->res);
- return 1;
+ ret = 1;
}
+ io_uring_cqe_seen(&ring, cqe);
+ if (ret)
+ break;
}
printf("Submitted=%d, completed=%d\n", pending, done);