Module Name:    src
Committed By:   kamil
Date:           Tue Mar 28 03:03:15 UTC 2017

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/tests/kernel/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/kernel/t_ptrace_wait.c
diff -u src/tests/kernel/t_ptrace_wait.c:1.80 src/tests/kernel/t_ptrace_wait.c:1.81
--- src/tests/kernel/t_ptrace_wait.c:1.80	Tue Mar 28 01:40:39 2017
+++ src/tests/kernel/t_ptrace_wait.c	Tue Mar 28 03:03:15 2017
@@ -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 @@ 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) {
@@ -5254,6 +5259,11 @@ 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());

Reply via email to