summaryrefslogtreecommitdiff
path: root/tests/kernel
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2017-03-28 12:39:07 +0000
committerkamil <kamil@NetBSD.org>2017-03-28 12:39:07 +0000
commitcf0f28fd5596a8fb32054077ec9a034aaab24b46 (patch)
tree0bed1ff998d014a8aca4d6cbc16b15fb64cbe42f /tests/kernel
parent1522a8ec81628d540f34b4b1ac067aa735736659 (diff)
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 (limited to 'tests/kernel')
-rw-r--r--tests/kernel/t_ptrace_wait.c36
1 files changed, 33 insertions, 3 deletions
diff --git a/tests/kernel/t_ptrace_wait.c b/tests/kernel/t_ptrace_wait.c
index 3247fc7b1ba..bb4d165e960 100644
--- a/tests/kernel/t_ptrace_wait.c
+++ b/tests/kernel/t_ptrace_wait.c
@@ -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 @@ ATF_TC_BODY(step1, tc)
#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 @@ ATF_TC_BODY(step2, tc)
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 @@ ATF_TC_BODY(step3, tc)
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 @@ ATF_TC_BODY(step4, tc)
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 @@ ATF_TC_BODY(siginfo6, tc)
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 @@ ATF_TC_BODY(signal4, tc)
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);