summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/t_ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libc/sys/t_ptrace.c')
-rw-r--r--src/regress/lib/libc/sys/t_ptrace.c8
1 files changed, 4 insertions, 4 deletions
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}