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 <andrey.butok@nxp.com>
This commit is contained in:
parent
d75c2113a9
commit
d4682ff5c9
1 changed files with 0 additions and 8 deletions
|
@ -84,10 +84,6 @@ static int check_medium(void)
|
||||||
stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree);
|
stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree);
|
||||||
zassert_equal(stat.f_bsize, MEDIUM_IO_SIZE,
|
zassert_equal(stat.f_bsize, MEDIUM_IO_SIZE,
|
||||||
"bsize fail");
|
"bsize fail");
|
||||||
zassert_equal(stat.f_frsize, 4096,
|
|
||||||
"frsize fail");
|
|
||||||
zassert_equal(stat.f_blocks, 240,
|
|
||||||
"blocks fail");
|
|
||||||
zassert_equal(stat.f_bfree, stat.f_blocks - 2U,
|
zassert_equal(stat.f_bfree, stat.f_blocks - 2U,
|
||||||
"bfree fail");
|
"bfree fail");
|
||||||
|
|
||||||
|
@ -116,10 +112,6 @@ static int check_large(void)
|
||||||
stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree);
|
stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree);
|
||||||
zassert_equal(stat.f_bsize, LARGE_IO_SIZE,
|
zassert_equal(stat.f_bsize, LARGE_IO_SIZE,
|
||||||
"bsize fail");
|
"bsize fail");
|
||||||
zassert_equal(stat.f_frsize, 32768,
|
|
||||||
"frsize fail");
|
|
||||||
zassert_equal(stat.f_blocks, 96,
|
|
||||||
"blocks fail");
|
|
||||||
zassert_equal(stat.f_bfree, stat.f_blocks - 2U,
|
zassert_equal(stat.f_bfree, stat.f_blocks - 2U,
|
||||||
"bfree fail");
|
"bfree fail");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue