summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorJaeyeon Lee <jaeyeon.lee.dev@gmail.com>2026-10-05 01:00:18 +0200
committerAndrew Morton <akpm@linux-foundation.org>2026-10-08 23:06:25 -0700
commit1b6fd13abfd478c74c0dcf7a2eddfd3a20c98209 (patch)
tree4e7673ac71390ec645720c1838176292a07b961f /tools/lib/python
parent4332db92fcf17c6083da87b3e27d4008011b032e (diff)
downloadlinux-next-1b6fd13abfd478c74c0dcf7a2eddfd3a20c98209.tar.gz
linux-next-1b6fd13abfd478c74c0dcf7a2eddfd3a20c98209.zip
selftests/mm: hugetlb_madv_vs_map: fix TAP plan mismatches
The plan was raised from 1 to 3, but the HugeTLB setup check that may call ksft_exit_skip() still runs after ksft_set_plan(), so a setup failure reports one result against a plan of 3. Move ksft_set_plan() below the setup check. Also, when the underflow check fails, or munmap() fails, test_underflow() jumps to err_cleanup and exits without reporting the remaining results. Report the munmap() failure as a test result and skip the final HugePages_Rsvd check in err_cleanup, so the output always contains the planned 3 results. Link: https://lore.kernel.org/20261004230018.190880-1-jaeyeon.lee.dev@gmail.com Fixes: 827149aad495 ("selftests/mm: hugetlb_madv_vs_map: add underflow test") Signed-off-by: Jaeyeon Lee <jaeyeon.lee.dev@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Assisted-by: LLM Cc: Guillaume Morin <guillaume@morinfr.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Liam R. Howlett <liam@infradead.org> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Shuah Khan <shuah@kernel.org> Cc: Breno Leitao <leitao@debian.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions