From 3020fa47b6e399e64bc62ca3cafa3483226f3cea Mon Sep 17 00:00:00 2001 From: bluhm <> Date: Sun, 2 Feb 2020 20:18:17 +0000 Subject: Add missing new line to printf. Make clean should not require SUDO. --- src/regress/lib/libc/sys/Makefile | 4 +--- src/regress/lib/libc/sys/t_ptrace.c | 8 ++++---- 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 @@ -# $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 # Copyright (c) 2019 Alexander Bluhm @@ -100,5 +100,3 @@ run-${PROG}-$n: .endif .include - -clean: 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 @@ -/* $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); } -- cgit v1.2.3-55-g6feb