Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/kernel Clean up t_ptrace_wait.c
details: https://anonhg.NetBSD.org/src/rev/0f4b02eb832b
branches: trunk
changeset: 348906:0f4b02eb832b
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Nov 15 02:20:50 2016 +0000
description:
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>
diffstat:
tests/kernel/t_ptrace_wait.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (53 lines):
diff -r 3d478e2ba2c8 -r 0f4b02eb832b tests/kernel/t_ptrace_wait.c
--- a/tests/kernel/t_ptrace_wait.c Tue Nov 15 01:50:06 2016 +0000
+++ b/tests/kernel/t_ptrace_wait.c Tue Nov 15 02:20:50 2016 +0000
@@ -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 @@
* 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 @@
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_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");
Home |
Main Index |
Thread Index |
Old Index