Skip to content

Commit 970d9af

Browse files
committed
FILESYSTEM: fix KL25Z CI build failure but not instantiaing SDFileSystem.
1 parent 61a816a commit 970d9af

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

features/TESTS/filesystem/basic/basic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ using namespace utest::v1;
6363
* For testing purposes, an SDCard must be installed on the target for the test cases in this file to succeed.
6464
* If the target has an SD card installed then uncomment the #define FSFAT_SDCARD_INSTALLED directive for the target.
6565
*/
66+
#ifdef FSFAT_SDCARD_INSTALLED
67+
6668

6769
#if defined(TARGET_KL25Z)
6870
SDFileSystem sd(PTD2, PTD3, PTD1, PTD0, "sd");
@@ -137,8 +139,6 @@ SDFileSystem sd(p11, p12, p13, p14, "sd");
137139
#endif
138140

139141

140-
#ifdef FSFAT_SDCARD_INSTALLED
141-
142142
#define FSFAT_BASIC_TEST_00 fsfat_basic_test_00
143143
#define FSFAT_BASIC_TEST_01 fsfat_basic_test_01
144144
#define FSFAT_BASIC_TEST_02 fsfat_basic_test_02

features/TESTS/filesystem/fopen/fopen.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,22 @@
3737

3838
using namespace utest::v1;
3939

40-
static char fsfat_fopen_utest_msg_g[FSFAT_UTEST_MSG_BUF_SIZE];
40+
/// @cond FSFAT_DOXYGEN_DISABLE
41+
#ifdef FSFAT_DEBUG
42+
#define FSFAT_FOPEN_GREENTEA_TIMEOUT_S 3000
43+
#else
44+
#define FSFAT_FOPEN_GREENTEA_TIMEOUT_S 1000
45+
#endif
46+
/// @endcond
47+
4148

4249
/* FSFAT_SDCARD_INSTALLTED
4350
* For testing purposes, an SDCard must be installed on the target for the test cases in this file to succeed.
4451
* If the target has an SD card installed then uncomment the #define FSFAT_SDCARD_INSTALLED directive for the target.
4552
*/
53+
#ifdef FSFAT_SDCARD_INSTALLED
54+
55+
static char fsfat_fopen_utest_msg_g[FSFAT_UTEST_MSG_BUF_SIZE];
4656

4757
#if defined(TARGET_KL25Z)
4858
SDFileSystem sd(PTD2, PTD3, PTD1, PTD0, "sd");
@@ -117,16 +127,6 @@ SDFileSystem sd(p11, p12, p13, p14, "sd");
117127
#endif
118128

119129

120-
/// @cond FSFAT_DOXYGEN_DISABLE
121-
#ifdef FSFAT_DEBUG
122-
#define FSFAT_FOPEN_GREENTEA_TIMEOUT_S 3000
123-
#else
124-
#define FSFAT_FOPEN_GREENTEA_TIMEOUT_S 1000
125-
#endif
126-
/// @endcond
127-
128-
#ifdef FSFAT_SDCARD_INSTALLED
129-
130130
#define FSFAT_FOPEN_TEST_01 fsfat_fopen_test_01
131131
#define FSFAT_FOPEN_TEST_02 fsfat_fopen_test_02
132132
#define FSFAT_FOPEN_TEST_03 fsfat_fopen_test_03

0 commit comments

Comments
 (0)