Source-Changes-HG archive

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

[src/trunk]: src/tests/kernel attach1 in t_ptrace no longer fails



details:   https://anonhg.NetBSD.org/src/rev/e2e83140f7d8
branches:  trunk
changeset: 818893:e2e83140f7d8
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sat Nov 05 15:52:35 2016 +0000

description:
attach1 in t_ptrace no longer fails

Christos Zoulas fixed the issue that a parent sees termination of its child
before a tracer observing it for its tracee.

Many thanks to Christs for his help, he makes progress with tests so quick.

Closes PR kern/51600

Sponsored by <The NetBSD Foundation>.

diffstat:

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

diffs (31 lines):

diff -r ce018a628a84 -r e2e83140f7d8 tests/kernel/t_ptrace.c
--- a/tests/kernel/t_ptrace.c   Sat Nov 05 14:26:23 2016 +0000
+++ b/tests/kernel/t_ptrace.c   Sat Nov 05 15:52:35 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace.c,v 1.9 2016/11/05 01:49:53 kamil Exp $       */
+/*     $NetBSD: t_ptrace.c,v 1.10 2016/11/05 15:52:35 kamil Exp $      */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace.c,v 1.9 2016/11/05 01:49:53 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace.c,v 1.10 2016/11/05 15:52:35 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -513,12 +513,6 @@
        pid_t tracee, tracer, wpid;
        uint8_t msg = 0xde; /* dummy message for IPC based on pipe(2) */
 
-       /* XXX: Linux&FreeBSD and NetBSD have different behavior here.
-        * Tracer on NetBSD isn't promoted to observe - before child's parent -
-        * that tracee exited (and became zombie).
-        */
-       atf_tc_expect_fail("PR kern/51600");
-
        printf("Spawn tracee\n");
        ATF_REQUIRE(pipe(fds_totracee) == 0);
        ATF_REQUIRE((tracee = fork()) != -1);



Home | Main Index | Thread Index | Old Index