summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys
diff options
context:
space:
mode:
authorbluhm <>2020-02-02 20:18:17 +0000
committerbluhm <>2020-02-02 20:18:17 +0000
commit3020fa47b6e399e64bc62ca3cafa3483226f3cea (patch)
treeae65e9f7738fe4041881dd0ae235b5c05c8c53c8 /src/regress/lib/libc/sys
parent4be7345f6a4377f869fd7d5890d16060206d5fdc (diff)
downloadopenbsd-3020fa47b6e399e64bc62ca3cafa3483226f3cea.tar.gz
openbsd-3020fa47b6e399e64bc62ca3cafa3483226f3cea.tar.bz2
openbsd-3020fa47b6e399e64bc62ca3cafa3483226f3cea.zip
Add missing new line to printf. Make clean should not require SUDO.
Diffstat (limited to 'src/regress/lib/libc/sys')
-rw-r--r--src/regress/lib/libc/sys/Makefile4
-rw-r--r--src/regress/lib/libc/sys/t_ptrace.c8
2 files changed, 5 insertions, 7 deletions
diff --git a/src/regress/lib/libc/sys/Makefile b/src/regress/lib/libc/sys/Makefile
index 8c2c6eb3f8..a00befefd9 100644
--- a/src/regress/lib/libc/sys/Makefile
+++ b/src/regress/lib/libc/sys/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.3 2020/01/30 08:22:30 mpi Exp $ 1# $OpenBSD: Makefile,v 1.4 2020/02/02 20:18:17 bluhm Exp $
2 2
3# Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de> 3# Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de>
4# Copyright (c) 2019 Alexander Bluhm <bluhm@openbsd.org> 4# Copyright (c) 2019 Alexander Bluhm <bluhm@openbsd.org>
@@ -100,5 +100,3 @@ run-${PROG}-$n:
100.endif 100.endif
101 101
102.include <bsd.regress.mk> 102.include <bsd.regress.mk>
103
104clean: cleanup-dir
diff --git a/src/regress/lib/libc/sys/t_ptrace.c b/src/regress/lib/libc/sys/t_ptrace.c
index 78c4a8e47b..e651dec0a1 100644
--- a/src/regress/lib/libc/sys/t_ptrace.c
+++ b/src/regress/lib/libc/sys/t_ptrace.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t_ptrace.c,v 1.2 2020/01/30 08:22:30 mpi Exp $ */ 1/* $OpenBSD: t_ptrace.c,v 1.3 2020/02/02 20:18:17 bluhm Exp $ */
2/* $NetBSD: t_ptrace.c,v 1.4 2018/05/14 12:44:40 kamil Exp $ */ 2/* $NetBSD: t_ptrace.c,v 1.4 2018/05/14 12:44:40 kamil Exp $ */
3 3
4/*- 4/*-
@@ -182,7 +182,7 @@ ATF_TC_BODY(attach_chroot, tc)
182 ATF_REQUIRE(close(fds_toparent[1]) == 0); 182 ATF_REQUIRE(close(fds_toparent[1]) == 0);
183 ATF_REQUIRE(close(fds_fromparent[0]) == 0); 183 ATF_REQUIRE(close(fds_fromparent[0]) == 0);
184 184
185 printf("Waiting for chrooting of the child PID %d", child); 185 printf("Waiting for chrooting of the child PID %d\n", child);
186 rv = read(fds_toparent[0], &msg, sizeof(msg)); 186 rv = read(fds_toparent[0], &msg, sizeof(msg));
187 ATF_REQUIRE(rv == sizeof(msg)); 187 ATF_REQUIRE(rv == sizeof(msg));
188 188
@@ -207,11 +207,11 @@ ATF_TC_HEAD(traceme_twice, tc)
207ATF_TC_BODY(traceme_twice, tc) 207ATF_TC_BODY(traceme_twice, tc)
208{ 208{
209 209
210 printf("Mark the parent process (PID %d) a debugger of PID %d", 210 printf("Mark the parent process (PID %d) a debugger of PID %d\n",
211 getppid(), getpid()); 211 getppid(), getpid());
212 ATF_REQUIRE(ptrace(PT_TRACE_ME, 0, NULL, 0) == 0); 212 ATF_REQUIRE(ptrace(PT_TRACE_ME, 0, NULL, 0) == 0);
213 213
214 printf("Mark the parent process (PID %d) a debugger of PID %d again", 214 printf("Mark the parent process (PID %d) a debugger of PID %d again\n",
215 getppid(), getpid()); 215 getppid(), getpid());
216 ATF_REQUIRE_ERRNO(EBUSY, ptrace(PT_TRACE_ME, 0, NULL, 0) == -1); 216 ATF_REQUIRE_ERRNO(EBUSY, ptrace(PT_TRACE_ME, 0, NULL, 0) == -1);
217} 217}