diff mbox series

[COMMITTED] dio_append: Fix with -i2

Message ID 20220106134154.2398-1-chrubis@suse.cz
State Accepted
Headers show
Series [COMMITTED] dio_append: Fix with -i2 | expand

Commit Message

Cyril Hrubis Jan. 6, 2022, 1:41 p.m. UTC
We have to delete the file at the end of the iteration otherwise we will
not append on second and subseqent iterations.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/io/ltp-aiodio/dio_append.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/testcases/kernel/io/ltp-aiodio/dio_append.c b/testcases/kernel/io/ltp-aiodio/dio_append.c
index f9de54da6..59fd710e7 100644
--- a/testcases/kernel/io/ltp-aiodio/dio_append.c
+++ b/testcases/kernel/io/ltp-aiodio/dio_append.c
@@ -77,6 +77,8 @@  static void run(void)
 		tst_res(TPASS, "All bytes read were zeroed");
 
 	*run_child = 0;
+
+	SAFE_UNLINK(filename);
 }
 
 static struct tst_test test = {