Incorporated the review comment

pull/12316/head
Rajkumar Kanagaraj 2020-01-27 09:21:12 -08:00
parent 46a1f01b6d
commit b2890822d9
1 changed files with 1 additions and 0 deletions

View File

@ -1899,6 +1899,7 @@ static void FS_append_non_empty_file()
res = !((fd[0] = fopen("/default/" "filename", "a+")) != NULL);
TEST_ASSERT_EQUAL(0, res);
#if defined(__MICROLIB)
// Microlib does not support opening a file in an append mode.
fseek(fd[0], 0L, SEEK_END);
#endif
write_sz = fwrite(rewrite_buf, sizeof(char), sizeof(rewrite_buf), fd[0]);