Skip to content

Commit 7a08cb9

Browse files
brooniectmarinas
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 96dddb7 commit 7a08cb9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/testing/selftests/arm64/fp/fp-stress.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,5 @@ int main(int argc, char **argv)
651651

652652
drain_output(true);
653653

654-
ksft_print_cnts();
655-
656-
return 0;
654+
ksft_finished();
657655
}

0 commit comments

Comments
 (0)