From c9f736005ac3278faf67d6c9458101bff7882d46 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 9 Nov 2021 02:29:46 +0800 Subject: [PATCH] testing/fstest: Zero g_nfailed too in fstest_delallfiles Signed-off-by: Xiang Xiao --- testing/fstest/fstest_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/fstest/fstest_main.c b/testing/fstest/fstest_main.c index 7077d542f..1c5a73dd3 100644 --- a/testing/fstest/fstest_main.c +++ b/testing/fstest/fstest_main.c @@ -655,7 +655,7 @@ static inline int fstest_rdfile(FAR struct fstest_filedesc_s *file) /* Try reading past the end of the file */ - nbytesread = fstest_rdblock(fd, file, ntotalread, 1024) ; + nbytesread = fstest_rdblock(fd, file, ntotalread, 1024); if (nbytesread > 0) { printf("ERROR: Read past the end of file\n"); @@ -899,6 +899,7 @@ static int fstest_delallfiles(void) } g_nfiles = 0; + g_nfailed = 0; g_ndeleted = 0; return OK; }