Skip to contentSkip to conversation

dio_append: Fix with -i2

PATCH New Cyril Hrubis 1 participant 1 message Jan 6, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dio_append: Fix with -i2

We have to delete the file at the end of the iteration otherwise we will not append on second and subseqent iterations.

---
 testcases/kernel/io/ltp-aiodio/dio_append.c | 2 ++
 1 file changed, 2 insertions(+)
testcases/kernel/io/ltp-aiodio/dio_append.c +2 -0
index f9de54da6..59fd710e7 100644
@@ -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 = {
Signature · 5 lines
2.34.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp