kselftest/arm64: pac: Fix skipping of tests on systems without PAC
authorMark Brown <broonie@kernel.org>
Thu, 19 Aug 2021 16:57:23 +0000 (17:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:30 +0000 (13:40 +0200)
commit0df5eba67bf05663bfc044865c8daddaf3a2cb4a
tree344f853d6f01e69b8a9d61b453ec61627736490c
parent9486d7ac9f30fb412ece53cbf59e13e1a6636ab0
kselftest/arm64: pac: Fix skipping of tests on systems without PAC

[ Upstream commit 0c69bd2ca6ee20064dde7853cd749284e053a874 ]

The PAC tests check to see if the system supports the relevant PAC features
but instead of skipping the tests if they can't be executed they fail the
tests which makes things look like they're not working when they are.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210819165723.43903-1-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/arm64/pauth/pac.c