tests: littlefs: fix false negative test_lfs_basic
Fixes the false negative littlefs.test_lfs_basic test that can occur if the small_partition size > 64KB, and for platforms with CONFIG_FS_LITTLEFS_PROG_SIZE > 64 (e.g. lpc55s, mcxn). Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
This commit is contained in:
parent
bfbe764cb3
commit
b477a60a9c
1 changed files with 1 additions and 5 deletions
|
@ -57,12 +57,8 @@ static int clean_statvfs(const struct fs_mount_t *mp)
|
||||||
TC_PRINT("%s: bsize %lu ; frsize %lu ; blocks %lu ; bfree %lu\n",
|
TC_PRINT("%s: bsize %lu ; frsize %lu ; blocks %lu ; bfree %lu\n",
|
||||||
mp->mnt_point,
|
mp->mnt_point,
|
||||||
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, 16,
|
zassert_equal(stat.f_bsize, CONFIG_FS_LITTLEFS_PROG_SIZE,
|
||||||
"bsize fail");
|
"bsize fail");
|
||||||
zassert_equal(stat.f_frsize, 4096,
|
|
||||||
"frsize fail");
|
|
||||||
zassert_equal(stat.f_blocks, 16,
|
|
||||||
"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