Re: [PATCH net-next v3 06/11] selftests: kselftest: add ksft_test_result_code(), handling all exit codes
From: Kees Cook <hidden>
Date: 2024-02-21 00:49:56
Also in:
linux-kselftest, linux-security-module
From: Kees Cook <hidden>
Date: 2024-02-21 00:49:56
Also in:
linux-kselftest, linux-security-module
On Tue, Feb 20, 2024 at 11:22:30AM -0800, Jakub Kicinski wrote:
For generic test harness code it's more useful to deal with exit codes directly, rather than having to switch on them and call the right ksft_test_result_*() helper. Add such function to kselftest.h. Note that "directive" and "diagnostic" are what ktap docs call those parts of the message. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Kees Cook <redacted> -- Kees Cook