summaryrefslogtreecommitdiffstats
path: root/regress/lib/libc
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2020-02-02 20:18:17 +0000
committerbluhm <bluhm@openbsd.org>2020-02-02 20:18:17 +0000
commit4ae13c9997fd81c48bd541acef01e23f7172b650 (patch)
tree0d882bfc67e4477a71e0491ee9df2726afb98efc /regress/lib/libc
parentReapply post-svc-sled in a repaired fashion. The SYS_sigreturn-related (diff)
downloadwireguard-openbsd-4ae13c9997fd81c48bd541acef01e23f7172b650.tar.xz
wireguard-openbsd-4ae13c9997fd81c48bd541acef01e23f7172b650.zip
Add missing new line to printf. Make clean should not require SUDO.
Diffstat (limited to 'regress/lib/libc')
-rw-r--r--regress/lib/libc/sys/Makefile4
-rw-r--r--regress/lib/libc/sys/t_ptrace.c8
2 files changed, 5 insertions, 7 deletions
diff --git a/regress/lib/libc/sys/Makefile b/regress/lib/libc/sys/Makefile
index 8c2c6eb3f89..a00befefd98 100644
--- a/regress/lib/libc/sys/Makefile
+++ b/regress/lib/libc/sys/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 2020/01/30 08:22:30 mpi Exp $
+# $OpenBSD: Makefile,v 1.4 2020/02/02 20:18:17 bluhm Exp $
# Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de>
# Copyright (c) 2019 Alexander Bluhm <bluhm@openbsd.org>
@@ -100,5 +100,3 @@ run-${PROG}-$n:
.endif
.include <bsd.regress.mk>
-
-clean: cleanup-dir
diff --git a/regress/lib/libc/sys/t_ptrace.c b/regress/lib/libc/sys/t_ptrace.c
index 78c4a8e47b4..e651dec0a17 100644
--- a/regress/lib/libc/sys/t_ptrace.c
+++ b/regress/lib/libc/sys/t_ptrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t_ptrace.c,v 1.2 2020/01/30 08:22:30 mpi Exp $ */
+/* $OpenBSD: t_ptrace.c,v 1.3 2020/02/02 20:18:17 bluhm Exp $ */
/* $NetBSD: t_ptrace.c,v 1.4 2018/05/14 12:44:40 kamil Exp $ */
/*-
@@ -182,7 +182,7 @@ ATF_TC_BODY(attach_chroot, tc)
ATF_REQUIRE(close(fds_toparent[1]) == 0);
ATF_REQUIRE(close(fds_fromparent[0]) == 0);
- printf("Waiting for chrooting of the child PID %d", child);
+ printf("Waiting for chrooting of the child PID %d\n", child);
rv = read(fds_toparent[0], &msg, sizeof(msg));
ATF_REQUIRE(rv == sizeof(msg));
@@ -207,11 +207,11 @@ ATF_TC_HEAD(traceme_twice, tc)
ATF_TC_BODY(traceme_twice, tc)
{
- printf("Mark the parent process (PID %d) a debugger of PID %d",
+ printf("Mark the parent process (PID %d) a debugger of PID %d\n",
getppid(), getpid());
ATF_REQUIRE(ptrace(PT_TRACE_ME, 0, NULL, 0) == 0);
- printf("Mark the parent process (PID %d) a debugger of PID %d again",
+ printf("Mark the parent process (PID %d) a debugger of PID %d again\n",
getppid(), getpid());
ATF_REQUIRE_ERRNO(EBUSY, ptrace(PT_TRACE_ME, 0, NULL, 0) == -1);
}