Skip to content

Commit 1e3b3bd

Browse files
committed
fix open-maximum-number-of-files test.
1 parent 548e35d commit 1e3b3bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
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();

0 commit comments

Comments
 (0)