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 Mark signal3/t_ptrace_wait* with timeout ...
details: https://anonhg.NetBSD.org/src/rev/8f4761f66fa8
branches: trunk
changeset: 352962:8f4761f66fa8
user: kamil <kamil%NetBSD.org@localhost>
date: Sun Apr 16 12:50:59 2017 +0000
description:
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.
diffstat:
tests/lib/libc/sys/t_ptrace_wait.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 3ea9d4fff4c9 -r 8f4761f66fa8 tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c Sun Apr 16 12:32:03 2017 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c Sun Apr 16 12:50:59 2017 +0000
@@ -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(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 @@
#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);
Home |
Main Index |
Thread Index |
Old Index