selftest: pidfd: Omit long and repeating outputs
authorZiqi Zhao <astrajoan@yahoo.com>
Tue, 23 May 2023 23:22:07 +0000 (23:22 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 12 Jun 2023 22:39:11 +0000 (16:39 -0600)
commitbcda4c863efdd038c4f8ade63ff435ed663cc286
treee8f582bdf3753021ca1141a92eb7e27a30e3ab91
parentf6a01213e3f812b645cd1079167bf47fc45bb0c8
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>
tools/testing/selftests/pidfd/pidfd.h
tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
tools/testing/selftests/pidfd/pidfd_test.c