File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
TESTS/filesystem/fat_filesystem Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,13 @@ void test_read_dir() {
116
116
while ((de = readdir (&dir))) {
117
117
printf (" d_name: %.32s, d_type: %x\n " , de->d_name , de->d_type );
118
118
119
- if (strcmp (de->d_name , " test_dir" ) == 0 ) {
119
+ if (strcmp (de->d_name , " ." ) == 0 ) {
120
+ test_dir_found = true ;
121
+ TEST_ASSERT_EQUAL (DT_DIR, de->d_type );
122
+ } else if (strcmp (de->d_name , " .." ) == 0 ) {
123
+ test_dir_found = true ;
124
+ TEST_ASSERT_EQUAL (DT_DIR, de->d_type );
125
+ } else if (strcmp (de->d_name , " test_dir" ) == 0 ) {
120
126
test_dir_found = true ;
121
127
TEST_ASSERT_EQUAL (DT_DIR, de->d_type );
122
128
} else if (strcmp (de->d_name , " test_file" ) == 0 ) {
Original file line number Diff line number Diff line change 126
126
/ When _LFN_UNICODE is 0, this option has no effect. */
127
127
128
128
129
- #define _FS_RPATH 0
129
+ #define _FS_RPATH 1
130
130
/* This option configures relative path feature.
131
131
/
132
132
/ 0: Disable relative path feature and remove related functions.
You can’t perform that action at this time.
0 commit comments