kselftest/arm64: mte: use proper SKIP syntax
authorAndre Przywara <andre.przywara@arm.com>
Fri, 16 Aug 2024 15:32:46 +0000 (16:32 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 17 Oct 2024 17:51:50 +0000 (18:51 +0100)
commitbf52ca5912c07664276c7b94db820fa2d638b681
treebcef85018547073978c0c5bc9c7ef36b0829a6c6
parentb0d80dbc378d52155c9ecf9579986edccceed3aa
kselftest/arm64: mte: use proper SKIP syntax

If MTE is not available on a system, we detect this early and skip all
the MTE selftests. However this happens before we print the TAP plan, so
tools parsing the TAP output get confused and report an error.

Use the existing ksft_exit_skip() function to handle this, which uses a
dummy plan to work with tools expecting proper TAP syntax, as described
in the TAP specification.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240816153251.2833702-4-andre.przywara@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/mte/mte_common_util.c