Module Name: src
Committed By: kamil
Date: Tue Nov 15 02:20:50 UTC 2016
Modified Files:
src/tests/kernel: t_ptrace_wait.c
Log Message:
Clean up t_ptrace_wait.c
Remove trailing white space
Remove fflush(3) calls [previously added for debugging purposes]
Correct comment /proc/curproc/stat -> /proc/curpros/status
The status file is native for NetBSD, stat for Linux compatibility
No functional change.
Sponsored by <The NetBSD Foundation>
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/tests/kernel/t_ptrace_wait.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/kernel/t_ptrace_wait.c
diff -u src/tests/kernel/t_ptrace_wait.c:1.13 src/tests/kernel/t_ptrace_wait.c:1.14
--- src/tests/kernel/t_ptrace_wait.c:1.13 Mon Nov 14 04:55:57 2016
+++ src/tests/kernel/t_ptrace_wait.c Tue Nov 15 02:20:50 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_wait.c,v 1.13 2016/11/14 04:55:57 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait.c,v 1.14 2016/11/15 02:20:50 kamil Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.13 2016/11/14 04:55:57 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.14 2016/11/15 02:20:50 kamil Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -82,7 +82,7 @@ __RCSID("$NetBSD: t_ptrace_wait.c,v 1.13
* exact process identifier
* The TWAIT_HAVE_RUSAGE - specifies whether a function can request
* the struct rusage value
- *
+ *
*/
#if defined(TWAIT_WAIT)
@@ -360,13 +360,13 @@ ATF_TC_BODY(traceme1, tc)
printf("Before forking process PID=%d\n", getpid());
child = atf_utils_fork();
if (child == 0) {
- printf("Before calling PT_TRACE_ME from child %d\n", getpid());fflush(stdout);
+ printf("Before calling PT_TRACE_ME from child %d\n", getpid());
FORKEE_ASSERT(ptrace(PT_TRACE_ME, 0, NULL, 0) != -1);
- printf("Before raising %s from child\n", strsignal(sigval));fflush(stdout);
+ printf("Before raising %s from child\n", strsignal(sigval));
FORKEE_ASSERT(raise(sigval) == 0);
- printf("Before exiting of the child process\n");fflush(stdout);
+ printf("Before exiting of the child process\n");
_exit(exitval);
}
printf("Parent process PID=%d, child's PID=%d\n", getpid(), child);
@@ -1352,7 +1352,7 @@ ATF_TC_BODY(attach7, tc)
ATF_REQUIRE((rv = stat(fname, &st)) == 0 || (errno == ENOENT));
if (rv != 0) {
- atf_tc_skip("/proc/curproc/stat not found");
+ atf_tc_skip("/proc/curproc/status not found");
}
printf("Spawn tracee\n");