From: Mark Brown Date: Thu, 17 Oct 2024 17:43:31 +0000 (+0100) Subject: kselftest/arm64: Fail the overall fp-stress test if any test fails X-Git-Tag: v6.13-rc1~203^2~2^11~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a08cb9b4bb92fb86f5fe8a3aa0ac08a9b3d783b;p=thirdparty%2Fkernel%2Flinux.git kselftest/arm64: Fail the overall fp-stress test if any test fails Currently fp-stress does not report a top level test result if it runs to completion, it always exits with a return code 0. Use the ksft_finished() helper to ensure that the exit code for the top level program reports a failure if any of the individual tests has failed. Signed-off-by: Mark Brown Link: https://lore.kernel.org/r/20241017-arm64-fp-stress-exit-code-v1-1-f528e53a2321@kernel.org Signed-off-by: Catalin Marinas --- diff --git a/tools/testing/selftests/arm64/fp/fp-stress.c b/tools/testing/selftests/arm64/fp/fp-stress.c index faac24bdefeb9..e62c9dbad5010 100644 --- a/tools/testing/selftests/arm64/fp/fp-stress.c +++ b/tools/testing/selftests/arm64/fp/fp-stress.c @@ -651,7 +651,5 @@ int main(int argc, char **argv) drain_output(true); - ksft_print_cnts(); - - return 0; + ksft_finished(); }