diff options
| author | Ziqi Zhao <astrajoan@yahoo.com> | 2023-05-23 23:22:07 +0000 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-06-12 16:39:11 -0600 |
| commit | bcda4c863efdd038c4f8ade63ff435ed663cc286 (patch) | |
| tree | e8f582bdf3753021ca1141a92eb7e27a30e3ab91 /tools/testing/selftests/pidfd/pidfd_fdinfo_test.c | |
| parent | f6a01213e3f812b645cd1079167bf47fc45bb0c8 (diff) | |
selftest: pidfd: Omit long and repeating outputs
An output message:
> # # waitpid WEXITSTATUS=0
will be printed for 30,000+ times in the `pidfd_test` selftest, which
does not seem ideal. This patch removes the print logic in the
`wait_for_pid` function, so each call to this function does not output
a line by default. Any existing call sites where the extra line might
be beneficial have been modified to include extra print statements
outside of the function calls.
Signed-off-by: Ziqi Zhao <astrajoan@yahoo.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/pidfd/pidfd_fdinfo_test.c')
| -rw-r--r-- | tools/testing/selftests/pidfd/pidfd_fdinfo_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c b/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c index 3fd8e903118f..4e86f927880c 100644 --- a/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c +++ b/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c @@ -143,6 +143,7 @@ static inline int child_join(struct child *child, struct error *err) r = -1; } + ksft_print_msg("waitpid WEXITSTATUS=%d\n", r); return r; } |
