From: claudio Date: Tue, 31 Oct 2023 07:56:44 +0000 (+0000) Subject: Ignore closefrom() failure. This fails normally since fd 4 and up are all X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5567b162b6474e1f0acdf8eb1aafe2307503af3b;p=openbsd Ignore closefrom() failure. This fails normally since fd 4 and up are all closed. OK mbuhl@ millert@ --- diff --git a/regress/lib/libc/sys/t_pipe2.c b/regress/lib/libc/sys/t_pipe2.c index 173d467c38e..b88d933c9ac 100644 --- a/regress/lib/libc/sys/t_pipe2.c +++ b/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);