diff options
author | Mark Brown <broonie@kernel.org> | 2022-02-07 15:20:34 +0000 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-02-25 14:38:29 +0000 |
commit | 32de73e89099c3f243032a733d3a64d417327a70 (patch) | |
tree | 0404b7f983292d7a29ecbc035fa4dfe256bbfc79 /tools/testing/selftests/arm64/signal/test_signals_utils.h | |
parent | kselftest/arm64: mte: user_mem: test a wider range of values (diff) | |
download | linux-dev-32de73e89099c3f243032a733d3a64d417327a70.tar.xz linux-dev-32de73e89099c3f243032a733d3a64d417327a70.zip |
kselftest/arm64: signal: Allow tests to be incompatible with features
Some features may invalidate some tests, for example by supporting an
operation which would trap otherwise. Allow tests to list features that
they are incompatible with so we can cover the case where a signal will
be generated without disruption on systems where that won't happen.
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220207152109.197566-6-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | tools/testing/selftests/arm64/signal/test_signals_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/arm64/signal/test_signals_utils.h b/tools/testing/selftests/arm64/signal/test_signals_utils.h index 6772b5c8d274..f3aa99ba67bb 100644 --- a/tools/testing/selftests/arm64/signal/test_signals_utils.h +++ b/tools/testing/selftests/arm64/signal/test_signals_utils.h @@ -18,6 +18,8 @@ void test_result(struct tdescr *td); static inline bool feats_ok(struct tdescr *td) { + if (td->feats_incompatible & td->feats_supported) + return false; return (td->feats_required & td->feats_supported) == td->feats_required; } |