Re: [PATCH v2] selftests: mm: skip charge_reserved_hugetlb without killall

From: David Hildenbrand (Arm)

Date: Mon Apr 13 2026 - 05:17:41 EST


On 4/10/26 06:41, Cao Ruichuang wrote:
> charge_reserved_hugetlb.sh tears down background writers with
> killall from psmisc. Minimal Ubuntu images do not always provide
> that tool, so the selftest fails in cleanup for an environment reason
> rather than for the hugetlb behavior it is trying to cover.
>
> Skip the test when killall is unavailable, similar to the existing
> root check, so these environments report the dependency clearly
> instead of failing the test.
>
> Signed-off-by: Cao Ruichuang <create0818@xxxxxxx>
> ---

Reviewed-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David