Skip to content

Commit e606c17

Browse files
author
Deepika
committed
FSFAT_SDCARD_INSTALLED - Null test were tested
FSFAT_SDCARD_INSTALLED if present in SD library no test was actually tested. Using MBED_CONF_APP_FSFAT_SDCARD_INSTALLED or MBED_CONF_SD_FSFAT_SDCARD_INSTALLED, to allow this define to be used from app and lib json files.
1 parent e0e0d0d commit e606c17

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

TESTS/filesystem/basic/basic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ using namespace utest::v1;
9090
* },
9191
* <<< lines removed >>>
9292
*/
93-
#if defined(DEVICE_SPI) && defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED)
93+
#if defined(DEVICE_SPI) && ( defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) || (MBED_CONF_SD_FSFAT_SDCARD_INSTALLED))
9494

9595
#define FSFAT_BASIC_TEST_00 fsfat_basic_test_00
9696
#define FSFAT_BASIC_TEST_01 fsfat_basic_test_01
@@ -897,7 +897,7 @@ static control_t fsfat_basic_test_dummy()
897897
return CaseNext;
898898
}
899899

900-
#endif /* defined(DEVICE_SPI) && defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) */
900+
#endif
901901

902902
utest::v1::status_t greentea_setup(const size_t number_of_cases)
903903
{

TESTS/filesystem/fopen/fopen.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ using namespace utest::v1;
7575
* },
7676
* <<< lines removed >>>
7777
*/
78-
#if defined(DEVICE_SPI) && defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED)
79-
78+
79+
#if defined(DEVICE_SPI) && ( defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) || (MBED_CONF_SD_FSFAT_SDCARD_INSTALLED))
8080
static char fsfat_fopen_utest_msg_g[FSFAT_UTEST_MSG_BUF_SIZE];
8181
#define FSFAT_FOPEN_TEST_MOUNT_PT_NAME "sd"
8282
#define FSFAT_FOPEN_TEST_MOUNT_PT_PATH "/"FSFAT_FOPEN_TEST_MOUNT_PT_NAME
@@ -1490,7 +1490,7 @@ static control_t fsfat_fopen_test_dummy()
14901490
return CaseNext;
14911491
}
14921492

1493-
#endif /* defined(DEVICE_SPI) && defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) */
1493+
#endif
14941494

14951495

14961496
/// @cond FSFAT_DOXYGEN_DISABLE

0 commit comments

Comments
 (0)