]> Git Repo - linux.git/commitdiff
selftests: breakpoints: Use correct error messages in breakpoint_test_arm64.c
authorTiezhu Yang <[email protected]>
Fri, 5 Feb 2021 06:33:59 +0000 (14:33 +0800)
committerShuah Khan <[email protected]>
Tue, 9 Feb 2021 00:04:41 +0000 (17:04 -0700)
When call ptrace(PTRACE_CONT, ...) failed, use correct error messages.

Signed-off-by: Tiezhu Yang <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
tools/testing/selftests/breakpoints/breakpoint_test_arm64.c

index ad41ea69001bce596d9fb537a5f98d0e19df5a2a..e7041816085a3181e5ec1ed11b09a30605e30440 100644 (file)
@@ -145,7 +145,7 @@ static bool run_test(int wr_size, int wp_size, int wr, int wp)
 
        if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) {
                ksft_print_msg(
-                       "ptrace(PTRACE_SINGLESTEP) failed: %s\n",
+                       "ptrace(PTRACE_CONT) failed: %s\n",
                        strerror(errno));
                return false;
        }
@@ -159,7 +159,7 @@ static bool run_test(int wr_size, int wp_size, int wr, int wp)
        }
        alarm(0);
        if (WIFEXITED(status)) {
-               ksft_print_msg("child did not single-step\n");
+               ksft_print_msg("child exited prematurely\n");
                return false;
        }
        if (!WIFSTOPPED(status)) {
This page took 0.069566 seconds and 4 git commands to generate.