Skip to contentSkip to conversation

selftest: pidfd: Omit long and repeating outputs

PATCH Christian Brauner 2 participants 2 messages May 24, 2023 – Jun 5, 2023 2 messages not in the archive Kselftest

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Christian Brauner

author Reviewed-by
#2 lore raw
Quoted 11 lines · Ziqi Zhao

An output message:

Quoted 1 line

# # 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.

Quoted 2 lines

---

Fine by me,

maintainer
#3 lore raw
Quoted 12 lines · Christian Brauner
Quoted 11 lines · Ziqi Zhao

An output message:

Quoted 1 line

# # 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.

Quoted 5 lines
Quoted 2 lines

---

Fine by me,

Thank you. Applied to linux-kselftest next for Linux 6.5-rc1.

thanks,
-- Shuah