Commit d4682ff5 authored by Andrej Butok's avatar Andrej Butok Committed by Benjamin Cabé
Browse files

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: default avatarAndrej Butok <andrey.butok@nxp.com>
parent d75c2113
Loading
Loading
Loading
Loading
+0 −8
Changes for tests/subsys/fs/littlefs/src/test_lfs_basic.c: 0 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -84,10 +84,6 @@ static int check_medium(void)
		 stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree);
	zassert_equal(stat.f_bsize, MEDIUM_IO_SIZE,
		      "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,
		      "bfree fail");

@@ -116,10 +112,6 @@ static int check_large(void)
		 stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree);
	zassert_equal(stat.f_bsize, LARGE_IO_SIZE,
		      "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,
		      "bfree fail");