linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] selftests: add ksft_exit_fail_perror()
@ 2024-04-04 16:14 Muhammad Usama Anjum
  2024-04-04 16:14 ` [PATCH 1/2] " Muhammad Usama Anjum
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Muhammad Usama Anjum @ 2024-04-04 16:14 UTC (permalink / raw)
  To: Eric Biederman, Kees Cook, Shuah Khan, Muhammad Usama Anjum,
	linux-mm, linux-kselftest, linux-kernel
  Cc: kernel

In this series, ksft_exit_fail_perror() is being added which is helper
function on top of ksft_exit_fail_msg(). It prints errno and its string
form always. After writing and porting several kselftests, I've found
out that most of times ksft_exit_fail_msg() isn't useful if errno value
isn't printed. The ksft_exit_fail_perror() provides a convenient way to
always print errno when its used.

Muhammad Usama Anjum (2):
  selftests: add ksft_exit_fail_perror()
  selftests: exec: Use new ksft_exit_fail_perror() helper

 tools/testing/selftests/exec/recursion-depth.c | 10 +++++-----
 tools/testing/selftests/kselftest.h            | 14 ++++++++++++++
 2 files changed, 19 insertions(+), 5 deletions(-)

-- 
2.39.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-04 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-04 16:14 [PATCH 0/2] selftests: add ksft_exit_fail_perror() Muhammad Usama Anjum
2024-04-04 16:14 ` [PATCH 1/2] " Muhammad Usama Anjum
2024-04-04 16:14 ` [PATCH 2/2] selftests: exec: Use new ksft_exit_fail_perror() helper Muhammad Usama Anjum
2024-04-04 17:48 ` [PATCH 0/2] selftests: add ksft_exit_fail_perror() Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox