kselftest/arm64: Convert za-fork to use kselftest.h
authorMark Brown <broonie@kernel.org>
Thu, 6 Apr 2023 16:19:12 +0000 (17:19 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 11 Apr 2023 20:10:51 +0000 (14:10 -0600)
commit266679ffd867cb247c36717ea4d7998e9304823b
treef7e882b1c5bf28eebe285ab9b5c0b1220f961b72
parent9e38be732da8fe3c970c2c9f6169d5aa38bf0d72
kselftest/arm64: Convert za-fork to use kselftest.h

Now that kselftest.h can be used with nolibc convert the za-fork test to
use it. We do still have to open code ksft_print_msg() but that's not the
end of the world. Some of the advantage comes from using printf() which we
could have been using already.

This does change the output when tests are skipped, bringing it in line
with the standard kselftest output by removing the test name - we move
from

    ok 0 skipped

to

    ok 1 # SKIP fork_test

The old output was not following KTAP format for skips, and the
numbering was not standard or consistent with the reported plan.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/arm64/fp/Makefile
tools/testing/selftests/arm64/fp/za-fork.c