summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/t_pipe2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libc/sys/t_pipe2.c')
-rw-r--r--src/regress/lib/libc/sys/t_pipe2.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/regress/lib/libc/sys/t_pipe2.c b/src/regress/lib/libc/sys/t_pipe2.c
index 4964be14ce..07991de455 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.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ 1/* $OpenBSD: t_pipe2.c,v 1.2 2020/11/09 23:18:51 bluhm 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/*-
@@ -81,16 +81,16 @@ run(int flags)
81 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0); 81 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0);
82 } 82 }
83 83
84 /* 84#ifndef __OpenBSD__
85 * Adjusted for OpenBSD, not available 85 /* F_GETNOSIGPIPE not available */
86 * if (flags & O_NOSIGPIPE) { 86 if (flags & O_NOSIGPIPE) {
87 * ATF_REQUIRE(fcntl(fd[0], F_GETNOSIGPIPE) != 0); 87 ATF_REQUIRE(fcntl(fd[0], F_GETNOSIGPIPE) != 0);
88 * ATF_REQUIRE(fcntl(fd[1], F_GETNOSIGPIPE) != 0); 88 ATF_REQUIRE(fcntl(fd[1], F_GETNOSIGPIPE) != 0);
89 *} else { 89 } else {
90 * ATF_REQUIRE(fcntl(fd[0], F_GETNOSIGPIPE) == 0); 90 ATF_REQUIRE(fcntl(fd[0], F_GETNOSIGPIPE) == 0);
91 * ATF_REQUIRE(fcntl(fd[1], F_GETNOSIGPIPE) == 0); 91 ATF_REQUIRE(fcntl(fd[1], F_GETNOSIGPIPE) == 0);
92 *} 92 }
93 */ 93#endif
94 94
95 ATF_REQUIRE(close(fd[0]) != -1); 95 ATF_REQUIRE(close(fd[0]) != -1);
96 ATF_REQUIRE(close(fd[1]) != -1); 96 ATF_REQUIRE(close(fd[1]) != -1);
@@ -193,10 +193,10 @@ ATF_TP_ADD_TCS(tp)
193 ATF_TP_ADD_TC(tp, pipe2_consume); 193 ATF_TP_ADD_TC(tp, pipe2_consume);
194 ATF_TP_ADD_TC(tp, pipe2_nonblock); 194 ATF_TP_ADD_TC(tp, pipe2_nonblock);
195 ATF_TP_ADD_TC(tp, pipe2_cloexec); 195 ATF_TP_ADD_TC(tp, pipe2_cloexec);
196 /* 196#ifndef __OpenBSD__
197 * Adjusted for OpenBSD, not available 197 /* O_NOSIGPIPE not available */
198 * ATF_TP_ADD_TC(tp, pipe2_nosigpipe); 198 ATF_TP_ADD_TC(tp, pipe2_nosigpipe);
199 */ 199#endif
200 ATF_TP_ADD_TC(tp, pipe2_einval); 200 ATF_TP_ADD_TC(tp, pipe2_einval);
201 201
202 return atf_no_error(); 202 return atf_no_error();