Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/kernel Mark fork1 and siginfo5 as broken on sparc, spa...
details: https://anonhg.NetBSD.org/src/rev/f45d3abce021
branches: trunk
changeset: 352359:f45d3abce021
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Mar 28 03:03:15 2017 +0000
description:
Mark fork1 and siginfo5 as broken on sparc, sparc64, evbarm and alpha
PR kern/52117 ptrace(2) PTRACE_FORK fails on some platforms
These tests work on amd64, i386 and xen.
They are part of t_ptrace_wait*.
Sponsored by <The NetBSD Foundation>
diffstat:
tests/kernel/t_ptrace_wait.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 08ad90868d05 -r f45d3abce021 tests/kernel/t_ptrace_wait.c
--- a/tests/kernel/t_ptrace_wait.c Tue Mar 28 01:40:39 2017 +0000
+++ b/tests/kernel/t_ptrace_wait.c Tue Mar 28 03:03:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_wait.c,v 1.80 2017/03/28 01:40:39 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait.c,v 1.81 2017/03/28 03:03:15 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.80 2017/03/28 01:40:39 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.81 2017/03/28 03:03:15 kamil Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -1320,6 +1320,11 @@
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) {
@@ -5254,6 +5259,11 @@
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