]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/vm: skip 128TBswitch on unsupported arch
authorAdam Sindelar <adam@wowsignal.io>
Mon, 4 Jul 2022 12:38:13 +0000 (14:38 +0200)
committerakpm <akpm@linux-foundation.org>
Wed, 20 Jul 2022 21:41:47 +0000 (14:41 -0700)
commit3f00e76a1d648579898c2308e4904dbc04d4ec23
tree42e15523f8658df50ba27a5048caa51b95d3d504
parent4091777a6786af6159aba6a06ebc30ce45e73edf
selftests/vm: skip 128TBswitch on unsupported arch

The test va_128TBswitch.c exercises a feature only supported on PPC and
x86_64, but it's run on other 64-bit archs as well.  Before this patch,
the test did nothing and returned 0 for KSFT_PASS.  This patch makes it
return the KSFT codes from kselftest.h, including KSFT_SKIP when
appropriate.

Verified on arm64 and x86_64.

Link: https://lkml.kernel.org/r/20220704123813.427625-1-adam@wowsignal.io
Signed-off-by: Adam Sindelar <adam@wowsignal.io>
Cc: David Vernet <void@manifault.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/vm/va_128TBswitch.c