Skip to content

Commit 3b85386

Browse files
author
Deepika
authored
Merge pull request ARMmbed#44 from ARMmbed/g-fix-ferror-null
Remove test assert on NULL ferror
2 parents 4856a20 + 803ebe4 commit 3b85386

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

TESTS/filesystem/fopen/fopen.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,6 @@ control_t fsfat_fopen_test_07(const size_t call_count)
775775
errno_val = errno;
776776
FSFAT_TEST_UTEST_MESSAGE(fsfat_fopen_utest_msg_g, FSFAT_UTEST_MSG_BUF_SIZE, "%s:Error: errno has unexpected value (errno != 0 expected) (filename=%s, errno=%d).\n", __func__, filename, errno);
777777
TEST_ASSERT_MESSAGE(errno_val != 0, fsfat_fopen_utest_msg_g);
778-
779-
/* check ferror() returns non-zero indicating there is an error
780-
* Note ARMCC appears to fault when null FILE* is supplied to ferror() */
781-
ret = ferror(f);
782-
FSFAT_TEST_UTEST_MESSAGE(fsfat_fopen_utest_msg_g, FSFAT_UTEST_MSG_BUF_SIZE, "%s:Error: ferror() did not return non-zero value when error exists (filename=%s, ret=%d).\n", __func__, filename, (int) ret);
783-
TEST_ASSERT_MESSAGE(ret != 0, fsfat_fopen_utest_msg_g);
784778
#endif /* ! defined(__ARMCC_VERSION) && defined(__GNUC__) */
785779
return CaseNext;
786780
}

0 commit comments

Comments
 (0)