@@ -1027,9 +1027,11 @@ static void FS_fseek_beyond_empty_file_seek_set()
1027
1027
1028
1028
int read_sz = fread (read_buf, sizeof (char ), sizeof (read_buf), fd[0 ]);
1029
1029
TEST_ASSERT_EQUAL (0 , read_sz);
1030
-
1030
+ #if !defined(__MICROLIB)
1031
+ // feof() always returns 0 because the EOF indicator is not supported by Microlib
1031
1032
res = feof (fd[0 ]);
1032
1033
TEST_ASSERT_NOT_EQUAL (0 , res);
1034
+ #endif
1033
1035
1034
1036
res = fclose (fd[0 ]);
1035
1037
TEST_ASSERT_EQUAL (0 , res);
@@ -1062,8 +1064,11 @@ static void FS_fseek_beyond_non_empty_file_seek_set()
1062
1064
int read_sz = fread (read_buf, sizeof (char ), sizeof (read_buf), fd[0 ]);
1063
1065
TEST_ASSERT_EQUAL (0 , read_sz);
1064
1066
1067
+ #if !defined(__MICROLIB)
1068
+ // feof() always returns 0 because the EOF indicator is not supported by Microlib
1065
1069
res = feof (fd[0 ]);
1066
1070
TEST_ASSERT_NOT_EQUAL (0 , res);
1071
+ #endif
1067
1072
1068
1073
res = fclose (fd[0 ]);
1069
1074
TEST_ASSERT_EQUAL (0 , res);
@@ -1147,8 +1152,11 @@ static void FS_fseek_beyond_empty_file_seek_cur()
1147
1152
int read_sz = fread (read_buf, sizeof (char ), sizeof (read_buf), fd[0 ]);
1148
1153
TEST_ASSERT_EQUAL (0 , read_sz);
1149
1154
1155
+ #if !defined(__MICROLIB)
1156
+ // feof() always returns 0 because the EOF indicator is not supported by Microlib
1150
1157
res = feof (fd[0 ]);
1151
1158
TEST_ASSERT_NOT_EQUAL (0 , res);
1159
+ #endif
1152
1160
1153
1161
res = fclose (fd[0 ]);
1154
1162
TEST_ASSERT_EQUAL (0 , res);
@@ -1181,8 +1189,11 @@ static void FS_fseek_beyond_non_empty_file_seek_cur()
1181
1189
int read_sz = fread (read_buf, sizeof (char ), sizeof (read_buf), fd[0 ]);
1182
1190
TEST_ASSERT_EQUAL (0 , read_sz);
1183
1191
1192
+ #if !defined(__MICROLIB)
1193
+ // feof() always returns 0 because the EOF indicator is not supported by Microlib
1184
1194
res = feof (fd[0 ]);
1185
1195
TEST_ASSERT_NOT_EQUAL (0 , res);
1196
+ #endif
1186
1197
1187
1198
res = fclose (fd[0 ]);
1188
1199
TEST_ASSERT_EQUAL (0 , res);
@@ -1266,8 +1277,11 @@ static void FS_fseek_beyond_empty_file_seek_end()
1266
1277
int read_sz = fread (read_buf, sizeof (char ), sizeof (read_buf), fd[0 ]);
1267
1278
TEST_ASSERT_EQUAL (0 , read_sz);
1268
1279
1280
+ #if !defined(__MICROLIB)
1281
+ // feof() always returns 0 because the EOF indicator is not supported by Microlib
1269
1282
res = feof (fd[0 ]);
1270
1283
TEST_ASSERT_NOT_EQUAL (0 , res);
1284
+ #endif
1271
1285
1272
1286
res = fclose (fd[0 ]);
1273
1287
TEST_ASSERT_EQUAL (0 , res);
@@ -1300,8 +1314,11 @@ static void FS_fseek_beyond_non_empty_file_seek_end()
1300
1314
int read_sz = fread (read_buf, sizeof (char ), sizeof (read_buf), fd[0 ]);
1301
1315
TEST_ASSERT_EQUAL (0 , read_sz);
1302
1316
1317
+ #if !defined(__MICROLIB)
1318
+ // feof() always returns 0 because the EOF indicator is not supported by Microlib
1303
1319
res = feof (fd[0 ]);
1304
1320
TEST_ASSERT_NOT_EQUAL (0 , res);
1321
+ #endif
1305
1322
1306
1323
res = fclose (fd[0 ]);
1307
1324
TEST_ASSERT_EQUAL (0 , res);
0 commit comments