[LTP] [COMMITTED] [PATCH] dio_append: Fix with -i2

Cyril Hrubis chrubis@suse.cz
Thu Jan 6 14:41:54 CET 2022


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 --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 = {
-- 
2.34.1



More information about the ltp mailing list