linux/tools/testing/selftests/powerpc/mm
Michael Ellerman cd4a6f3ab4 selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable
The subpage_prot syscall is only functional when the system is using
the Hash MMU. Since commit 5b2b807147 ("powerpc/mm: Invalidate
subpage_prot() system call on radix platforms") it returns ENOENT when
the Radix MMU is active. Currently this just makes the test fail.

Additionally the syscall is not available if the kernel is built with
4K pages, or if CONFIG_PPC_SUBPAGE_PROT=n, in which case it returns
ENOSYS because the syscall is missing entirely.

So check explicitly for ENOENT and ENOSYS and skip if we see either of
those.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-03-02 11:37:04 +11:00
..
.gitignore selftests/powerpc: Add a test of SEGV error behaviour 2018-01-03 16:49:24 +11:00
hugetlb_vs_thp_test.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile selftests/powerpc: Add a test of SEGV error behaviour 2018-01-03 16:49:24 +11:00
prot_sao.c selftests/powerpc: Add a test for PROT_SAO 2016-07-14 20:26:25 +10:00
segv_errors.c selftests/powerpc: Add a test of SEGV error behaviour 2018-01-03 16:49:24 +11:00
subpage_prot.c selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable 2018-03-02 11:37:04 +11:00