summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/t_pipe.c
diff options
context:
space:
mode:
authorbluhm <>2020-11-09 23:18:51 +0000
committerbluhm <>2020-11-09 23:18:51 +0000
commitc369d42df84f5bdabcac9041e6c5680a0cbfeaf9 (patch)
tree2233f16128b2705882f46a8369c9f9f47f40af5c /src/regress/lib/libc/sys/t_pipe.c
parent999ec352efbeb24cccd1d584b91a659b15764151 (diff)
downloadopenbsd-c369d42df84f5bdabcac9041e6c5680a0cbfeaf9.tar.gz
openbsd-c369d42df84f5bdabcac9041e6c5680a0cbfeaf9.tar.bz2
openbsd-c369d42df84f5bdabcac9041e6c5680a0cbfeaf9.zip
Sync libc syscall tests with changes in upstream NetBSD. Use #ifdef
to document differences to NetBSD behaviour, this helps to track upstream. Mark currently failing test as expected failures. So test programs get compiled and executed, but it shows that further investigation is necceassry.
Diffstat (limited to 'src/regress/lib/libc/sys/t_pipe.c')
-rw-r--r--src/regress/lib/libc/sys/t_pipe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libc/sys/t_pipe.c b/src/regress/lib/libc/sys/t_pipe.c
index bd9805a4b9..2fcb6d4b13 100644
--- a/src/regress/lib/libc/sys/t_pipe.c
+++ b/src/regress/lib/libc/sys/t_pipe.c
@@ -1,5 +1,5 @@
1/* $OpenBSD: t_pipe.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ 1/* $OpenBSD: t_pipe.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */
2/* $NetBSD: t_pipe.c,v 1.5 2017/01/13 21:30:41 christos Exp $ */ 2/* $NetBSD: t_pipe.c,v 1.7 2020/06/26 07:50:11 jruoho Exp $ */
3 3
4/*- 4/*-
5 * Copyright (c) 2001, 2008 The NetBSD Foundation, Inc. 5 * Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
33#include <sys/cdefs.h> 33#include <sys/cdefs.h>
34__COPYRIGHT("@(#) Copyright (c) 2008\ 34__COPYRIGHT("@(#) Copyright (c) 2008\
35 The NetBSD Foundation, inc. All rights reserved."); 35 The NetBSD Foundation, inc. All rights reserved.");
36__RCSID("$NetBSD: t_pipe.c,v 1.5 2017/01/13 21:30:41 christos Exp $"); 36__RCSID("$NetBSD: t_pipe.c,v 1.7 2020/06/26 07:50:11 jruoho Exp $");
37 37
38#include <sys/types.h> 38#include <sys/types.h>
39#include <sys/wait.h> 39#include <sys/wait.h>
@@ -74,7 +74,7 @@ ATF_TC_HEAD(pipe_restart, tc)
74{ 74{
75 atf_tc_set_md_var(tc, "descr", "Checks that writing to pipe " 75 atf_tc_set_md_var(tc, "descr", "Checks that writing to pipe "
76 "works correctly after being interrupted and restarted " 76 "works correctly after being interrupted and restarted "
77 "(kern/14087)"); 77 "(PR kern/14087)");
78} 78}
79 79
80ATF_TC_BODY(pipe_restart, tc) 80ATF_TC_BODY(pipe_restart, tc)
@@ -103,7 +103,7 @@ ATF_TC_BODY(pipe_restart, tc)
103 /* child */ 103 /* child */
104 RL(close(pp[1])); 104 RL(close(pp[1]));
105 105
106 /* Do inital write. This should succeed, make 106 /* Do initial write. This should succeed, make
107 * the other side do partial write and wait for us to pick 107 * the other side do partial write and wait for us to pick
108 * rest up. 108 * rest up.
109 */ 109 */