]> 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)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 3 Aug 2022 18:17:10 +0000 (14:17 -0400)
commitbeaee30f60b82f46636d5a48872c2a5dc9364386
tree5a4c54c6a694494413c4a13cc3f83ac4292cd53c
parent2f7e577cfad01b670d577581e4a639c73fe00b44
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