Skip to content

Commit b1cd3d8

Browse files
seehearfeelshuahkh
authored andcommitted
selftests: breakpoints: Use correct error messages in breakpoint_test_arm64.c
When call ptrace(PTRACE_CONT, ...) failed, use correct error messages. Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent f405ac8 commit b1cd3d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/breakpoints/breakpoint_test_arm64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static bool run_test(int wr_size, int wp_size, int wr, int wp)
145145

146146
if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) {
147147
ksft_print_msg(
148-
"ptrace(PTRACE_SINGLESTEP) failed: %s\n",
148+
"ptrace(PTRACE_CONT) failed: %s\n",
149149
strerror(errno));
150150
return false;
151151
}
@@ -159,7 +159,7 @@ static bool run_test(int wr_size, int wp_size, int wr, int wp)
159159
}
160160
alarm(0);
161161
if (WIFEXITED(status)) {
162-
ksft_print_msg("child did not single-step\n");
162+
ksft_print_msg("child exited prematurely\n");
163163
return false;
164164
}
165165
if (!WIFSTOPPED(status)) {

0 commit comments

Comments
 (0)