summaryrefslogtreecommitdiff
path: root/test/fsync.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fsync.c')
-rw-r--r--test/fsync.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/fsync.c b/test/fsync.c
index de28c2c..c9c2c5d 100644
--- a/test/fsync.c
+++ b/test/fsync.c
@@ -112,6 +112,9 @@ static int test_barrier_fsync(struct io_uring *ring)
printf("child: wait completion %d\n", ret);
goto err;
}
+ /* kernel doesn't support IOSQE_IO_DRAIN */
+ if (cqe->res == -EINVAL)
+ break;
if (i <= 3) {
if (cqe->user_data) {
printf("Got fsync early?\n");
@@ -153,7 +156,7 @@ int main(int argc, char *argv[])
ret = test_barrier_fsync(&ring);
if (ret) {
- printf("test_single_fsync failed\n");
+ printf("test_barrier_fsync failed\n");
return ret;
}