Skip to content

Commit b477a60

Browse files
butokkartben
authored andcommitted
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 <[email protected]>
1 parent bfbe764 commit b477a60

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,8 @@ static int clean_statvfs(const struct fs_mount_t *mp)
5757
TC_PRINT("%s: bsize %lu ; frsize %lu ; blocks %lu ; bfree %lu\n",
5858
mp->mnt_point,
5959
stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree);
60-
zassert_equal(stat.f_bsize, 16,
60+
zassert_equal(stat.f_bsize, CONFIG_FS_LITTLEFS_PROG_SIZE,
6161
"bsize fail");
62-
zassert_equal(stat.f_frsize, 4096,
63-
"frsize fail");
64-
zassert_equal(stat.f_blocks, 16,
65-
"blocks fail");
6662
zassert_equal(stat.f_bfree, stat.f_blocks - 2U,
6763
"bfree fail");
6864

0 commit comments

Comments
 (0)