diff options
author | Eric Badger <badger@FreeBSD.org> | 2017-02-23 04:26:17 +0000 |
---|---|---|
committer | Eric Badger <badger@FreeBSD.org> | 2017-02-23 04:26:17 +0000 |
commit | e2ebfbbf385bb12d172a21926d093a91a48f409d (patch) | |
tree | eb53008dfe3897a51a370402330a4787312b5c43 /tests | |
parent | 1631d42aa666bf3618f47ae5a1e48832f6e4d85b (diff) | |
download | src-e2ebfbbf385bb12d172a21926d093a91a48f409d.tar.gz src-e2ebfbbf385bb12d172a21926d093a91a48f409d.zip |
Actually fix buildworlds other than i386/amd64/sparc64 after r313992
Disable offending test for platforms without a userspace visible
breakpoint().
Reported by: rpokala
Approved by: vangyzen (mentor)
Notes
Notes:
svn path=/head/; revision=314118
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/kern/ptrace_test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/sys/kern/ptrace_test.c b/tests/sys/kern/ptrace_test.c index f4aafb9ba77d..d53b8b5789d6 100644 --- a/tests/sys/kern/ptrace_test.c +++ b/tests/sys/kern/ptrace_test.c @@ -1679,6 +1679,11 @@ ATF_TC_BODY(ptrace__ptrace_vfork_follow, tc) } /* + * XXX: There's nothing inherently platform specific about this test, however a + * userspace visible breakpoint() is a prerequisite. + */ + #if defined(__amd64__) || defined(__i386__) || defined(__sparc64__) +/* * Verify that no more events are reported after PT_KILL except for the * process exit when stopped due to a breakpoint trap. */ @@ -1723,6 +1728,7 @@ ATF_TC_BODY(ptrace__PT_KILL_breakpoint, tc) ATF_REQUIRE(wpid == -1); ATF_REQUIRE(errno == ECHILD); } +#endif /* defined(__amd64__) || defined(__i386__) || defined(__sparc64__) */ /* * Verify that no more events are reported after PT_KILL except for the @@ -2806,7 +2812,9 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, ptrace__event_mask); ATF_TP_ADD_TC(tp, ptrace__ptrace_vfork); ATF_TP_ADD_TC(tp, ptrace__ptrace_vfork_follow); +#if defined(__amd64__) || defined(__i386__) || defined(__sparc64__) ATF_TP_ADD_TC(tp, ptrace__PT_KILL_breakpoint); +#endif ATF_TP_ADD_TC(tp, ptrace__PT_KILL_system_call); ATF_TP_ADD_TC(tp, ptrace__PT_KILL_threads); ATF_TP_ADD_TC(tp, ptrace__PT_KILL_competing_signal); |