aboutsummaryrefslogtreecommitdiff
path: root/test/link_drain.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/link_drain.c')
-rw-r--r--test/link_drain.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/link_drain.c b/test/link_drain.c
index a50fe88..b95168d 100644
--- a/test/link_drain.c
+++ b/test/link_drain.c
@@ -111,6 +111,7 @@ int test_link_drain_multi(struct io_uring *ring)
perror("open");
return 1;
}
+ unlink("testfile");
iovecs.iov_base = t_malloc(4096);
iovecs.iov_len = 4096;
@@ -189,12 +190,10 @@ int test_link_drain_multi(struct io_uring *ring)
free(iovecs.iov_base);
close(fd);
- unlink("testfile");
return 0;
err:
free(iovecs.iov_base);
close(fd);
- unlink("testfile");
return 1;
}