kselftest/arm64: signal: Skip tests if required features are missing
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 20 Sep 2021 12:12:28 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Sep 2021 08:11:03 +0000 (10:11 +0200)
commit3aa50241e1eda27013e92d0db4f1b179e5cc33a6
treef55d0b1ce298e3d41d80fbc5251e3af3c69446b9
parent91d4da33c3675b23aa47bbc421af07f18058dc5a
kselftest/arm64: signal: Skip tests if required features are missing

[ Upstream commit 0e3dbf765fe22060acbcb8eb8c4d256e655a1247 ]

During initialization of a signal testcase, features declared as required
are properly checked against the running system but no action is then taken
to effectively skip such a testcase.

Fix core signals test logic to abort initialization and report such a
testcase as skipped to the KSelfTest framework.

Fixes: f96bf4340316 ("kselftest: arm64: mangle_pstate_invalid_compat_toggle and common utils")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210920121228.35368-1-cristian.marussi@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/arm64/signal/test_signals_utils.c