aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@pitt.edu>2017-06-16 00:54:22 +0900
committerShuah Khan <shuahkh@osg.samsung.com>2017-06-15 18:10:29 -0600
commite4d1065b315b433f224920f1617bc3783230501c (patch)
tree580be6d9207d965e1b227f37ce1c4dee7479681c /tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
parentkselftest: make ksft_exit_skip() output a reason for skipping (diff)
downloadlinux-dev-e4d1065b315b433f224920f1617bc3783230501c.tar.xz
linux-dev-e4d1065b315b433f224920f1617bc3783230501c.zip
kselftest: make callers of ksft_exit_skip() output the reason for skipping
Make the three tests that did use the old ksft_ext_skip() (breakpoints/breakpoint_test_arm64, breakpoints/step_after_suspend_test, and membarrier_test) use the new one, with an output for the reason for skipping all the tests. Signed-off-by: Paul Elder <paul.elder@pitt.edu> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/breakpoints/breakpoint_test_arm64.c')
-rw-r--r--tools/testing/selftests/breakpoints/breakpoint_test_arm64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c b/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
index 3897e996541e..fa6d57af5217 100644
--- a/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
+++ b/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
@@ -101,9 +101,8 @@ static bool set_watchpoint(pid_t pid, int size, int wp)
return true;
if (errno == EIO) {
- printf("ptrace(PTRACE_SETREGSET, NT_ARM_HW_WATCH) "
+ ksft_exit_skip("ptrace(PTRACE_SETREGSET, NT_ARM_HW_WATCH) "
"not supported on this hardware\n");
- ksft_exit_skip();
}
perror("ptrace(PTRACE_SETREGSET, NT_ARM_HW_WATCH) failed");
return false;