Skip to content

Commit a12f71d

Browse files
butokkartben
authored andcommitted
tests: littlefs: fix test_fs_mkfs_custom littlefs_init_cfg() fail
Fixes the littleFS test_fs_mkfs_custom test fail in littlefs_init_cfg(): "erase size must be multiple of write size". It happens for platforms with erase size < 2*write size (e.g. lpc55s). Signed-off-by: Andrej Butok <[email protected]>
1 parent b477a60 commit a12f71d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ZTEST(littlefs, test_fs_mkfs_ops_lfs)
4949
FS_LITTLEFS_DECLARE_CUSTOM_CONFIG(custom_cfg,
5050
4,
5151
CONFIG_FS_LITTLEFS_READ_SIZE,
52-
CONFIG_FS_LITTLEFS_PROG_SIZE * 2,
52+
CONFIG_FS_LITTLEFS_PROG_SIZE,
5353
CONFIG_FS_LITTLEFS_CACHE_SIZE,
5454
CONFIG_FS_LITTLEFS_LOOKAHEAD_SIZE);
5555

@@ -74,7 +74,7 @@ ZTEST(littlefs, test_fs_mkfs_custom)
7474

7575
TC_PRINT("f_bsize= %lu", sbuf.f_bsize);
7676
/* Prog size is returned in f_bsize field. */
77-
zassert_equal(sbuf.f_bsize, 2 * CONFIG_FS_LITTLEFS_PROG_SIZE);
77+
zassert_equal(sbuf.f_bsize, CONFIG_FS_LITTLEFS_PROG_SIZE);
7878

7979
ret = fs_unmount(&mnt);
8080
zassert_equal(ret, 0, "Expected success (ret=%d)", ret);

0 commit comments

Comments
 (0)