diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:02:37 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:02:37 +0000 |
commit | 71927bc101a1c2e7360022c2a056f49106b722ea (patch) | |
tree | ebe9c872e416346e4b333e5062da32401c8e0a73 /test/fallocate.c | |
parent | d53db6851ea17b2d219d084e1afc683b8b62b105 (diff) | |
parent | 1d27ff1934c5c4292dc00fba7f7f8ae411ed42f5 (diff) | |
download | liburing-android14-mainline-os-statsd-release.tar.gz |
Snap for 10453563 from 1d27ff1934c5c4292dc00fba7f7f8ae411ed42f5 to mainline-os-statsd-releaseaml_sta_341710000aml_sta_341615000aml_sta_341511040aml_sta_341410000aml_sta_341311010aml_sta_341114000aml_sta_341111000aml_sta_341010020aml_sta_340912000aml_sta_340911000aml_net_341111030android14-mainline-os-statsd-release
Change-Id: I92aad81dca3afa0dc7b00b53365472f7f29e4b40
Diffstat (limited to 'test/fallocate.c')
-rw-r--r-- | test/fallocate.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/fallocate.c b/test/fallocate.c index da90be8..ddb53a6 100644 --- a/test/fallocate.c +++ b/test/fallocate.c @@ -42,6 +42,7 @@ static int test_fallocate_rlimit(struct io_uring *ring) perror("open"); return 1; } + unlink(buf); sqe = io_uring_get_sqe(ring); if (!sqe) { @@ -72,10 +73,8 @@ static int test_fallocate_rlimit(struct io_uring *ring) } io_uring_cqe_seen(ring, cqe); out: - unlink(buf); return 0; err: - unlink(buf); return 1; } @@ -93,6 +92,7 @@ static int test_fallocate(struct io_uring *ring) perror("open"); return 1; } + unlink(buf); sqe = io_uring_get_sqe(ring); if (!sqe) { @@ -136,10 +136,8 @@ static int test_fallocate(struct io_uring *ring) } out: - unlink(buf); return 0; err: - unlink(buf); return 1; } @@ -160,6 +158,7 @@ static int test_fallocate_fsync(struct io_uring *ring) perror("open"); return 1; } + unlink(buf); sqe = io_uring_get_sqe(ring); if (!sqe) { @@ -209,10 +208,8 @@ static int test_fallocate_fsync(struct io_uring *ring) goto err; } - unlink(buf); return 0; err: - unlink(buf); return 1; } |