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 atf: ptrace: Temporarily skip fpregs* tes...
details: https://anonhg.NetBSD.org/src/rev/02839e37bb4d
branches: trunk
changeset: 358412:02839e37bb4d
user: kamil <kamil%NetBSD.org@localhost>
date: Thu Dec 28 09:47:52 2017 +0000
description:
atf: ptrace: Temporarily skip fpregs* tests on pmax
NetBSD/pmax 8.99.9 panics when attempting to use fpregs through ptrace(2).
Sponsored by <The NetBSD Foundation>
diffstat:
tests/lib/libc/sys/t_ptrace_wait.c | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diffs (54 lines):
diff -r f039dc24db48 -r 02839e37bb4d tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c Thu Dec 28 08:49:28 2017 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c Thu Dec 28 09:47:52 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_wait.c,v 1.20 2017/12/27 13:38:51 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait.c,v 1.21 2017/12/28 09:47:52 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.20 2017/12/27 13:38:51 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.21 2017/12/28 09:47:52 kamil Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -4311,6 +4311,17 @@
#endif
struct fpreg r;
+ /* pmax kernel 8.99.9 panics */
+ char *machine;
+ size_t mlen;
+ machine = asysctlbyname("hw.machine", &mlen);
+ ATF_REQUIRE(machine);
+ if (strcmp(machine, "pmax") == 0) {
+ atf_tc_expect_fail("PR port-pmax/52871");
+ ATF_REQUIRE(0 && "In order to get reliable failure, abort");
+ }
+ free(machine);
+
DPRINTF("Before forking process PID=%d\n", getpid());
SYSCALL_REQUIRE((child = fork()) != -1);
if (child == 0) {
@@ -4366,6 +4377,17 @@
#endif
struct fpreg r;
+ /* pmax kernel 8.99.9 panics */
+ char *machine;
+ size_t mlen;
+ machine = asysctlbyname("hw.machine", &mlen);
+ ATF_REQUIRE(machine);
+ if (strcmp(machine, "pmax") == 0) {
+ atf_tc_expect_fail("PR port-pmax/52871");
+ ATF_REQUIRE(0 && "In order to get reliable failure, abort");
+ }
+ free(machine);
+
DPRINTF("Before forking process PID=%d\n", getpid());
SYSCALL_REQUIRE((child = fork()) != -1);
if (child == 0) {
Home |
Main Index |
Thread Index |
Old Index