diff --git a/tests/ptrace.c b/tests/ptrace.c index ef01252b45..40123f47b1 100644 --- a/tests/ptrace.c +++ b/tests/ptrace.c @@ -48,17 +48,18 @@ int main() { int status; while (true) { - puts("----- Pre-syscall -----"); + // puts("----- Pre-syscall -----"); result = ptrace(PTRACE_SYSCALL, pid, NULL, NULL); ERROR_IF(ptrace, result, == -1); UNEXP_IF(ptrace, result, != 0); - puts("Wait..."); + // puts("Wait..."); result = waitpid(pid, &status, 0); ERROR_IF(waitpid, result, == -1); - if (WIFEXITED(status)) { break; } + if (WIFEXITED(status)) + break; struct user_regs_struct regs; - puts("Get regs"); + // puts("Get regs"); result = ptrace(PTRACE_GETREGS, pid, NULL, ®s); ERROR_IF(ptrace, result, == -1); @@ -69,14 +70,15 @@ int main() { ERROR_IF(ptrace, result, == -1); } - puts("Post-syscall"); + // puts("Post-syscall"); result = ptrace(PTRACE_SYSCALL, pid, NULL, NULL); ERROR_IF(ptrace, result, == -1); UNEXP_IF(ptrace, result, != 0); - puts("Wait..."); + // puts("Wait..."); result = waitpid(pid, &status, 0); ERROR_IF(waitpid, result, == -1); - if (WIFEXITED(status)) { break; } + if (WIFEXITED(status)) + break; } printf("Child exited with status %d\n", WEXITSTATUS(status)); }