selftests/mm: skip the hugetlb-madvise tests on unmet hugepage requirements
authorNico Pache <npache@redhat.com>
Wed, 6 Mar 2024 22:37:14 +0000 (15:37 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 12 Mar 2024 20:07:18 +0000 (13:07 -0700)
commit84d147df13346461384ebc0ce2c1783bb9c17d1a
tree724a2e61b8ef75bc6681a066b727d5b10578bc3e
parent5a6aa60d18236c2f8ebc438db3e80e61714a8904
selftests/mm: skip the hugetlb-madvise tests on unmet hugepage requirements

Now that run_vmtests.sh does not guarantee that the correct hugepage count
is available, skip the hugetlb-madvise test if the requirements are not
met rather than failing.

Link: https://lkml.kernel.org/r/20240306223714.320681-4-npache@redhat.com
Signed-off-by: Nico Pache <npache@redhat.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/hugetlb-madvise.c