[PATCH v2 0/2] Skip mm selftests instead when kernel features are not present

From: Zi Yan
Date: Fri May 16 2025 - 09:30:21 EST


Two guard_regions tests on userfaultfd fail when userfaultfd is not
present. Skip them instead.

hugevm test reads kernel config to get page table level information and
fails when neither /proc/config.gz nor /boot/config-* is present. Skip
it instead.

Zi Yan (2):
selftests/mm: skip guard_regions.uffd tests when uffd is not present.
selftests/mm: skip hugevm test if kernel config file is not present.

tools/testing/selftests/mm/guard-regions.c | 17 ++++++++++--
.../selftests/mm/va_high_addr_switch.sh | 26 +++++++------------
2 files changed, 24 insertions(+), 19 deletions(-)

--
2.47.2