mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-28 21:00:54 +00:00
testing/fstest: Zero g_nfailed too in fstest_delallfiles
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
f8ebeb8fd8
commit
c9f736005a
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue