Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/kernel The problem with WIFCONTINUED() and WIFSTOPPED(...



details:   https://anonhg.NetBSD.org/src/rev/2a00c308b88d
branches:  trunk
changeset: 348722:2a00c308b88d
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Nov 04 09:08:11 2016 +0000

description:
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>.

diffstat:

 tests/kernel/t_ptrace.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r 080eebce61d4 -r 2a00c308b88d tests/kernel/t_ptrace.c
--- a/tests/kernel/t_ptrace.c   Fri Nov 04 08:24:36 2016 +0000
+++ b/tests/kernel/t_ptrace.c   Fri Nov 04 09:08:11 2016 +0000
@@ -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 @@
        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) {



Home | Main Index | Thread Index | Old Index