Module Name: src Committed By: kamil Date: Mon Apr 10 16:45:57 UTC 2017
Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: 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 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/sys/t_ptrace_wait.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/lib/libc/sys/t_ptrace_wait.c diff -u src/tests/lib/libc/sys/t_ptrace_wait.c:1.2 src/tests/lib/libc/sys/t_ptrace_wait.c:1.3 --- src/tests/lib/libc/sys/t_ptrace_wait.c:1.2 Sat Apr 8 00:25:50 2017 +++ src/tests/lib/libc/sys/t_ptrace_wait.c Mon Apr 10 16:45:57 2017 @@ -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 @@ ATF_TC_BODY(fork1, tc) 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 @@ ATF_TC_BODY(siginfo5, tc) 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());