Re: [PATCH 19/53] selftests/mm: va_high_addr_switch: use kselftest framework

Mark Brown
2026-04-07T14:34:52Z

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

On Mon, Apr 06, 2026 at 05:17:01PM +0300, Mike Rapoport wrote:

> if (p == MAP_FAILED) {
> - printf("FAILED\n");
> - ret = KSFT_FAIL;
> + ksft_test_result_fail("%s: MAP_FAILED\n", t->msg);

ksft_test_result_*() should use a consistent name for the test,
otherwise tooling won't be able to correlate passes and fails from
different runs (or different fails if the fails print different errors).
The entire string supplied is taken as the test name. Log the error
separately.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]