Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/kernel Mark PT_STEP tests in t_ptrace_wait* as broken ...



details:   https://anonhg.NetBSD.org/src/rev/56f6fafd3ba2
branches:  trunk
changeset: 822622:56f6fafd3ba2
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Mar 28 12:39:07 2017 +0000

description:
Mark PT_STEP tests in t_ptrace_wait* as broken on ARM

There is a definition of PT_STEP for userland, but no implementation
in the kernel.

PR kern/52119 PT_STEP not supported on arm 32-bit

Sponsored by <The NetBSD Foundation>

diffstat:

 tests/kernel/t_ptrace_wait.c |  36 +++++++++++++++++++++++++++++++++---
 1 files changed, 33 insertions(+), 3 deletions(-)

diffs (92 lines):

diff -r 28a2a2686503 -r 56f6fafd3ba2 tests/kernel/t_ptrace_wait.c
--- a/tests/kernel/t_ptrace_wait.c      Tue Mar 28 10:47:44 2017 +0000
+++ b/tests/kernel/t_ptrace_wait.c      Tue Mar 28 12:39:07 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.c,v 1.82 2017/03/28 03:19:20 kamil Exp $ */
+/*     $NetBSD: t_ptrace_wait.c,v 1.83 2017/03/28 12:39:07 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.82 2017/03/28 03:19:20 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.83 2017/03/28 12:39:07 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -4407,6 +4407,11 @@
 #endif
        int happy;
 
+#if defined(__arm__)
+       /* PT_STEP not supported on arm 32-bit */
+       atf_tc_expect_fail("PR kern/52119");
+#endif
+
        printf("Before forking process PID=%d\n", getpid());
        ATF_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -4472,6 +4477,11 @@
        int happy;
        int N = 2;
 
+#if defined(__arm__)
+       /* PT_STEP not supported on arm 32-bit */
+       atf_tc_expect_fail("PR kern/52119");
+#endif
+
        printf("Before forking process PID=%d\n", getpid());
        ATF_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -4540,6 +4550,11 @@
        int happy;
        int N = 3;
 
+#if defined(__arm__)
+       /* PT_STEP not supported on arm 32-bit */
+       atf_tc_expect_fail("PR kern/52119");
+#endif
+
        printf("Before forking process PID=%d\n", getpid());
        ATF_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -4608,6 +4623,11 @@
        int happy;
        int N = 4;
 
+#if defined(__arm__)
+       /* PT_STEP not supported on arm 32-bit */
+       atf_tc_expect_fail("PR kern/52119");
+#endif
+
        printf("Before forking process PID=%d\n", getpid());
        ATF_REQUIRE((child = fork()) != -1);
        if (child == 0) {
@@ -5414,6 +5434,11 @@
        int happy;
        struct ptrace_siginfo info;
 
+#if defined(__arm__)
+       /* PT_STEP not supported on arm 32-bit */
+       atf_tc_expect_fail("PR kern/52119");
+#endif
+
        memset(&info, 0, sizeof(info));
 
        printf("Before forking process PID=%d\n", getpid());
@@ -5899,7 +5924,12 @@
        sigset_t intmask;
        int happy;
 
-       atf_tc_expect_fail("PR kern/51918");
+#if defined(__arm__)
+       /* PT_STEP not supported on arm 32-bit */
+       atf_tc_expect_fail("PR kern/51918 PR kern/52119");
+#else
+       atf_tc_expect_fail("PR kern/52119");
+#endif
 
        printf("Before forking process PID=%d\n", getpid());
        ATF_REQUIRE((child = fork()) != -1);



Home | Main Index | Thread Index | Old Index