diff options
author | claudio <> | 2023-10-31 07:56:44 +0000 |
---|---|---|
committer | claudio <> | 2023-10-31 07:56:44 +0000 |
commit | 9ae4e352fcb8edeb5f9befbfbfe501ef035a30d5 (patch) | |
tree | b232527189b1d381465e37425148e169f0141118 /src/regress/lib/libc/sys | |
parent | bc08093d61a7c129c8e10c0201e9f3ab3167593f (diff) | |
download | openbsd-9ae4e352fcb8edeb5f9befbfbfe501ef035a30d5.tar.gz openbsd-9ae4e352fcb8edeb5f9befbfbfe501ef035a30d5.tar.bz2 openbsd-9ae4e352fcb8edeb5f9befbfbfe501ef035a30d5.zip |
Ignore closefrom() failure. This fails normally since fd 4 and up are all
closed.
OK mbuhl@ millert@
Diffstat (limited to 'src/regress/lib/libc/sys')
-rw-r--r-- | src/regress/lib/libc/sys/t_pipe2.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
1 | /* $OpenBSD: t_pipe2.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ | 1 | /* $OpenBSD: t_pipe2.c,v 1.4 2023/10/31 07:56:44 claudio Exp $ */ |
2 | /* $NetBSD: t_pipe2.c,v 1.9 2017/01/13 21:19:45 christos Exp $ */ | 2 | /* $NetBSD: t_pipe2.c,v 1.9 2017/01/13 21:19:45 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -117,8 +117,7 @@ ATF_TC_BODY(pipe2_consume, tc) | |||
117 | int err, filedes[2]; | 117 | int err, filedes[2]; |
118 | int old; | 118 | int old; |
119 | 119 | ||
120 | ATF_REQUIRE_MSG(closefrom(4) != -1, "closefrom failed: %s", | 120 | (void)closefrom(4); |
121 | strerror(errno)); | ||
122 | 121 | ||
123 | err = getrlimit(RLIMIT_NOFILE, &rl); | 122 | err = getrlimit(RLIMIT_NOFILE, &rl); |
124 | ATF_REQUIRE(err == 0); | 123 | ATF_REQUIRE(err == 0); |