From 9ae4e352fcb8edeb5f9befbfbfe501ef035a30d5 Mon Sep 17 00:00:00 2001 From: claudio <> Date: Tue, 31 Oct 2023 07:56:44 +0000 Subject: Ignore closefrom() failure. This fails normally since fd 4 and up are all closed. OK mbuhl@ millert@ --- src/regress/lib/libc/sys/t_pipe2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libc/sys/t_pipe2.c b/src/regress/lib/libc/sys/t_pipe2.c index 173d467c38..b88d933c9a 100644 --- a/src/regress/lib/libc/sys/t_pipe2.c +++ b/src/regress/lib/libc/sys/t_pipe2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: t_pipe2.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ +/* $OpenBSD: t_pipe2.c,v 1.4 2023/10/31 07:56:44 claudio Exp $ */ /* $NetBSD: t_pipe2.c,v 1.9 2017/01/13 21:19:45 christos Exp $ */ /*- @@ -117,8 +117,7 @@ ATF_TC_BODY(pipe2_consume, tc) int err, filedes[2]; int old; - ATF_REQUIRE_MSG(closefrom(4) != -1, "closefrom failed: %s", - strerror(errno)); + (void)closefrom(4); err = getrlimit(RLIMIT_NOFILE, &rl); ATF_REQUIRE(err == 0); -- cgit v1.2.3-55-g6feb