commit a27201f2a9b36722cc7a81b31b0e6ae0621078bb
parent d681ea0ce2e1903f5047140fb3bcb6da1dc0e673
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Tue, 12 May 2026 12:18:02 +0200
tests/libc: Adjust FOPEN_MAX in 0098-tmpfil
The value of FOPEN_MAX includes stdin, stdout and stderr
so it is impossible to open FOPEN_MAX new streams.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/libc/execute/0098-tmpfil.c b/tests/libc/execute/0098-tmpfil.c
@@ -52,7 +52,7 @@ test2(void)
max = TMP_MAX - 2;
if (max > FOPEN_MAX)
- max = FOPEN_MAX;
+ max = FOPEN_MAX - 3;
if (max > 32)
max = 32;