selftests/arm64: Check failures to set tags in check_tags_inclusion
authorMark Brown <broonie@kernel.org>
Tue, 10 May 2022 16:45:18 +0000 (17:45 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Sun, 15 May 2022 10:07:53 +0000 (11:07 +0100)
commit72d6771cb1734a2f32308c34c61043595e4bcb41
treed964b429998416b0ea3a99d0f18d4af1ec8edf4a
parentffc8274c21938b30b10fcd6d4fc0feb29c222955
selftests/arm64: Check failures to set tags in check_tags_inclusion

The MTE check_tags_inclusion test uses the mte_switch_mode() helper but
ignores the return values it generates meaning we might not be testing
the things we're trying to test, fail the test if it reports an error.
The helper will log any errors it returns.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220510164520.768783-4-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/mte/check_tags_inclusion.c