From 5d134dc5118297528e1c8985680c3aff49e02f7c Mon Sep 17 00:00:00 2001 From: Brian Pugh Date: Fri, 22 Nov 2024 10:24:58 -0500 Subject: [PATCH] fix open-maximum-number-of-files test. --- test/test_littlefs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_littlefs.c b/test/test_littlefs.c index 1c1418d..82337e4 100644 --- a/test/test_littlefs.c +++ b/test/test_littlefs.c @@ -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();