Skip to content

Commit 0d95f7e

Browse files
committed
Fix sd filesystem greentea test
- Disable the ferror() API test case as its not supported by microlib
1 parent 91464b2 commit 0d95f7e

File tree

1 file changed

+7
-1
lines changed
  • components/storage/blockdevice/COMPONENT_SD/TESTS/filesystem/fopen

1 file changed

+7
-1
lines changed

components/storage/blockdevice/COMPONENT_SD/TESTS/filesystem/fopen/fopen.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ FATFileSystem fs("sd", &sd);
9090
#define FSFAT_FOPEN_TEST_05 fsfat_fopen_test_05
9191
#define FSFAT_FOPEN_TEST_06 fsfat_fopen_test_06
9292
#define FSFAT_FOPEN_TEST_07 fsfat_fopen_test_07
93+
#if !defined(__MICROLIB)
9394
#define FSFAT_FOPEN_TEST_08 fsfat_fopen_test_08
95+
#endif
9496
#define FSFAT_FOPEN_TEST_09 fsfat_fopen_test_09
9597
#define FSFAT_FOPEN_TEST_10 fsfat_fopen_test_10
9698
#define FSFAT_FOPEN_TEST_11 fsfat_fopen_test_11
@@ -859,6 +861,7 @@ control_t fsfat_fopen_test_07(const size_t call_count)
859861
*
860862
* @return on success returns CaseNext to continue to next test case, otherwise will assert on errors.
861863
*/
864+
#if !defined(__MICROLIB)
862865
control_t fsfat_fopen_test_08(const size_t call_count)
863866
{
864867
FILE *fp = NULL;
@@ -925,7 +928,7 @@ control_t fsfat_fopen_test_08(const size_t call_count)
925928
fclose(fp);
926929
return CaseNext;
927930
}
928-
931+
#endif
929932

930933
/** @brief test for operation of ftell()
931934
*
@@ -1575,7 +1578,10 @@ Case cases[] = {
15751578
#endif
15761579
Case("FSFAT_FOPEN_TEST_06: fopen() with bad filenames (minimal).", FSFAT_FOPEN_TEST_06),
15771580
Case("FSFAT_FOPEN_TEST_07: fopen()/errno handling.", FSFAT_FOPEN_TEST_07),
1581+
#if !defined(__MICROLIB)
1582+
// Microlib does not support ferror()
15781583
Case("FSFAT_FOPEN_TEST_08: ferror()/clearerr()/errno handling.", FSFAT_FOPEN_TEST_08),
1584+
#endif
15791585
Case("FSFAT_FOPEN_TEST_09: ftell() handling.", FSFAT_FOPEN_TEST_09),
15801586
Case("FSFAT_FOPEN_TEST_10: remove() test.", FSFAT_FOPEN_TEST_10),
15811587
Case("FSFAT_FOPEN_TEST_11: rename().", FSFAT_FOPEN_TEST_11),

0 commit comments

Comments
 (0)