Module Name: src
Committed By: kamil
Date: Fri Nov 4 09:08:12 UTC 2016
Modified Files:
src/tests/kernel: t_ptrace.c
Log Message:
The problem with WIFCONTINUED() and WIFSTOPPED() in traceme4 is resolved
Fixed by Christos Zoulas in:
cvs rdiff -u -r1.260 -r1.261 src/sys/kern/kern_exit.c
http://mail-index.netbsd.org/source-changes/2016/11/03/msg078852.html
This has been verified to work on NetBSD releng machines.
Closes PR kern/51596
Sponsored by <The NetBSD Foundation>.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/kernel/t_ptrace.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.c
diff -u src/tests/kernel/t_ptrace.c:1.7 src/tests/kernel/t_ptrace.c:1.8
--- src/tests/kernel/t_ptrace.c:1.7 Thu Nov 3 20:24:18 2016
+++ src/tests/kernel/t_ptrace.c Fri Nov 4 09:08:11 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace.c,v 1.7 2016/11/03 20:24:18 kamil Exp $ */
+/* $NetBSD: t_ptrace.c,v 1.8 2016/11/04 09:08:11 kamil Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace.c,v 1.7 2016/11/03 20:24:18 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace.c,v 1.8 2016/11/04 09:08:11 kamil Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -369,12 +369,6 @@ ATF_TC_BODY(traceme4, tc)
const int sigval = SIGSTOP, sigsent = SIGCONT;
pid_t child, wpid;
- /* XXX: Linux&FreeBSD and NetBSD have different behavior here.
- * Assume that they are right and NetBSD is wrong.
- * The ptrace(2) interface is out of POSIX scope so there is no
- * ultimate standard to verify it. */
- atf_tc_expect_fail("PR kern/51596");
-
printf("Before forking process PID=%d\n", getpid());
ATF_REQUIRE((child = fork()) != -1);
if (child == 0) {