Module Name:    src
Committed By:   kamil
Date:           Sat Nov  5 15:52:35 UTC 2016

Modified Files:
        src/tests/kernel: t_ptrace.c

Log Message:
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>.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 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.9 src/tests/kernel/t_ptrace.c:1.10
--- src/tests/kernel/t_ptrace.c:1.9	Sat Nov  5 01:49:53 2016
+++ src/tests/kernel/t_ptrace.c	Sat Nov  5 15:52:35 2016
@@ -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 @@ ATF_TC_BODY(attach1, tc)
 	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);

Reply via email to