Skip to content

Commit a601d85

Browse files
author
Deepika
authored
Merge pull request ARMmbed#67 from deepikabhavnani/test_checks
FSFAT_SDCARD_INSTALLED - Accepted from mbed_app.json only
2 parents ae7e744 + e606c17 commit a601d85

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

TESTS/block_device/basic/basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void test_read_write() {
111111
// Write, sync, and read the block
112112
printf("test %0*llx:%llu...\n", addrwidth, block, block_size);
113113

114-
err = sd.erase(block, block_size);
114+
err = sd.trim(block, block_size);
115115
TEST_ASSERT_EQUAL(0, err);
116116

117117
err = sd.program(write_block, block, block_size);

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)