Skip to content

Commit 40f0fce

Browse files
authored
Merge pull request #207 from joltwallet/lfs-2.10.0
Update LFS to v2.10.0
2 parents 28639dd + 2c0017c commit 40f0fce

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

test/test_littlefs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ TEST_CASE("w+ mode read and write file", "[littlefs]")
156156

157157
TEST_CASE("can open maximum number of files", "[littlefs]")
158158
{
159-
size_t max_files = 61; /* account for stdin, stdout, stderr, esp-idf defaults to maximum 64 file descriptors */
159+
size_t max_files = FOPEN_MAX - 3; /* account for stdin, stdout, stderr, esp-idf defaults to maximum 64 file descriptors */
160+
160161
test_setup();
161162
test_littlefs_open_max_files("/littlefs/f", max_files);
162163
test_teardown();

test/test_littlefs_static_partition.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ TEST_CASE("grow filesystem", "[littlefs]")
137137
.partition = (const esp_partition_t *) &partition,
138138
};
139139

140-
uint32_t shrink_bytes;
140+
size_t shrink_bytes;
141141

142142
/* Format a smaller partition */
143143
{
@@ -158,7 +158,7 @@ TEST_CASE("grow filesystem", "[littlefs]")
158158

159159
/* Mount, ensure that it DOES grow */
160160
{
161-
uint32_t grow_bytes;
161+
size_t grow_bytes;
162162
conf.grow_on_mount = true;
163163
TEST_ESP_OK(esp_vfs_littlefs_register(&conf));
164164
TEST_ESP_OK(esp_littlefs_partition_info(&partition, &grow_bytes, NULL));

0 commit comments

Comments
 (0)