Re: [PATCH] selftests/mm: khugepaged: consolidate error exits via kselftest helpers

From: Zi Yan

Date: Mon Aug 17 2026 - 22:10:51 EST


On Mon Aug 17, 2026 at 2:19 AM EDT, Hongfu Li wrote:
> From: Hongfu Li <lihongfu@xxxxxxxxxx>
>
> Replace the perror()+exit(EXIT_FAILURE) pattern with
> ksft_exit_fail_perror() so failures are reported through the
> kselftest framework, consistent with the rest of the file.
>
> Signed-off-by: Hongfu Li <lihongfu@xxxxxxxxxx>
> ---
> tools/testing/selftests/mm/khugepaged.c | 20 +++++++-------------
> 1 file changed, 7 insertions(+), 13 deletions(-)
>

Thanks.

Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>



--
Best Regards,
Yan, Zi