Module Name:    src
Committed By:   kamil
Date:           Sun Apr 16 12:50:59 UTC 2017

Modified Files:
        src/tests/lib/libc/sys: t_ptrace_wait.c

Log Message:
Mark signal3/t_ptrace_wait* with timeout on sparc 32-bit

PR kern/52167 signal3/t_ptrace_wait* timeouts on sparc 32-bit

This test is also marked as failure on other platforms:

PR kern/51918 ptrace tracee can prevent tracer to get its signals by masking

Both issues are valid on sparc 32-bit, but the timeout one wins.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 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.6 src/tests/lib/libc/sys/t_ptrace_wait.c:1.7
--- src/tests/lib/libc/sys/t_ptrace_wait.c:1.6	Sun Apr 16 12:32:03 2017
+++ src/tests/lib/libc/sys/t_ptrace_wait.c	Sun Apr 16 12:50:59 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_ptrace_wait.c,v 1.6 2017/04/16 12:32:03 kamil Exp $	*/
+/*	$NetBSD: t_ptrace_wait.c,v 1.7 2017/04/16 12:50:59 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.6 2017/04/16 12:32:03 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.7 2017/04/16 12:50:59 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -5739,6 +5739,7 @@ ATF_TC_BODY(signal2, tc)
 ATF_TC(signal3);
 ATF_TC_HEAD(signal3, tc)
 {
+	atf_tc_set_md_var(tc, "timeout", "5");
 	atf_tc_set_md_var(tc, "descr",
 	    "Verify that masking SIGTRAP in tracee does not stop tracer from "
 	    "catching software breakpoints");
@@ -5755,7 +5756,14 @@ ATF_TC_BODY(signal3, tc)
 #endif
 	sigset_t intmask;
 
+#if defined(__sparc__) && !defined(__sparc64__)
+	atf_tc_expect_timeout("PR kern/52167");
+
+	// timeout wins, failure still valid
+	// atf_tc_expect_fail("PR kern/51918");
+#else
 	atf_tc_expect_fail("PR kern/51918");
+#endif
 
 	printf("Before forking process PID=%d\n", getpid());
 	ATF_REQUIRE((child = fork()) != -1);

Reply via email to