Skip to content

Commit d4682ff

Browse files
butokkartben
authored andcommitted
tests: littlefs: fix test_lfs_basic for medium and large partitions
Fixes failed test_lfs_basic for medium partition > 960KB and for large partition > 3MB. Flashes with large erase size require larger test partition sizes (e.g. s26ks512s0 has 256KB erase size). Signed-off-by: Andrej Butok <[email protected]>
1 parent d75c211 commit d4682ff

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/subsys/fs/littlefs/src/test_lfs_basic.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ static int check_medium(void)
8484
stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree);
8585
zassert_equal(stat.f_bsize, MEDIUM_IO_SIZE,
8686
"bsize fail");
87-
zassert_equal(stat.f_frsize, 4096,
88-
"frsize fail");
89-
zassert_equal(stat.f_blocks, 240,
90-
"blocks fail");
9187
zassert_equal(stat.f_bfree, stat.f_blocks - 2U,
9288
"bfree fail");
9389

@@ -116,10 +112,6 @@ static int check_large(void)
116112
stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree);
117113
zassert_equal(stat.f_bsize, LARGE_IO_SIZE,
118114
"bsize fail");
119-
zassert_equal(stat.f_frsize, 32768,
120-
"frsize fail");
121-
zassert_equal(stat.f_blocks, 96,
122-
"blocks fail");
123115
zassert_equal(stat.f_bfree, stat.f_blocks - 2U,
124116
"bfree fail");
125117

0 commit comments

Comments
 (0)