Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/sys fork1 and siginfo5 no longer fails on !x8...



details:   https://anonhg.NetBSD.org/src/rev/3b2118089a30
branches:  trunk
changeset: 822861:3b2118089a30
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Apr 10 16:45:57 2017 +0000

description:
fork1 and siginfo5 no longer fails on !x86 platforms in t_ptrace_wait*

The PTRACE_FORK operation has been fixed. Patch committed by <martin>

PR kern/52117

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.c |  14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diffs (42 lines):

diff -r 0e8a08f205f3 -r 3b2118089a30 tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c        Mon Apr 10 16:44:46 2017 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c        Mon Apr 10 16:45:57 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.c,v 1.2 2017/04/08 00:25:50 kamil Exp $  */
+/*     $NetBSD: t_ptrace_wait.c,v 1.3 2017/04/10 16:45:57 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.2 2017/04/08 00:25:50 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.3 2017/04/10 16:45:57 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -1321,11 +1321,6 @@
        ptrace_event_t event;
        const int elen = sizeof(event);
 
-#if defined(__sparc__) || defined(__alpha__) || defined(__arm__)
-       /* ptrace(2) PTRACE_FORK fails on some platforms */
-       atf_tc_expect_fail("PR kern/52117");
-#endif
-
        printf("Before forking process PID=%d\n", getpid());
        ATF_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -5191,11 +5186,6 @@
        const int elen = sizeof(event);
        struct ptrace_siginfo info;
 
-#if defined(__sparc__) || defined(__alpha__) || defined(__arm__)
-       /* ptrace(2) PTRACE_FORK fails on some platforms */
-       atf_tc_expect_fail("PR kern/52117");
-#endif
-
        memset(&info, 0, sizeof(info));
 
        printf("Before forking process PID=%d\n", getpid());



Home | Main Index | Thread Index | Old Index