Skip to content

Commit

Permalink
fix open-maximum-number-of-files test.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Dec 12, 2024
1 parent de30a95 commit 5d134dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_littlefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ TEST_CASE("w+ mode read and write file", "[littlefs]")

TEST_CASE("can open maximum number of files", "[littlefs]")
{
size_t max_files = 61; /* account for stdin, stdout, stderr, esp-idf defaults to maximum 64 file descriptors */
size_t max_files = FOPEN_MAX - 3; /* account for stdin, stdout, stderr, esp-idf defaults to maximum 64 file descriptors */

test_setup();
test_littlefs_open_max_files("/littlefs/f", max_files);
test_teardown();
Expand Down

0 comments on commit 5d134dc

Please sign in to comment.