[PATCH 0/4] selftests/mm: skip several tests when thp is not available

Chunyu Hu
2026-03-12T11:40:51Z

There are several tests requires transprarent hugepages, when run on thp
disabled kernel such as realtime kernel, there will be false positve.
Mark those tests as skip when thp is not available.

Chunye Hu (4):
selftests/mm/guard-regions: skip collapse test when thp not enabled
selftests/mm: soft-dirty: skip two tests when thp not available
selftests/mm: split_huge_page_test: skip the test when thp not
available
selftests/mm: transhuge_stress: skip the test when thp not available

tools/testing/selftests/mm/guard-regions.c | 4 ++++
tools/testing/selftests/mm/soft-dirty.c | 4 +++-
tools/testing/selftests/mm/split_huge_page_test.c | 9 +++++++--
tools/testing/selftests/mm/transhuge-stress.c | 4 ++++
4 files changed, 18 insertions(+), 3 deletions(-)

base-commit: 80234b5ab240f52fa45d201e899e207b9265ef91
--
2.53.0