[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <df85fba8-826f-41fb-8850-077a4e4dd240@redhat.com>
Date: Tue, 3 Jun 2025 17:06:17 +0200
From: David Hildenbrand <david@...hat.com>
To: Mark Brown <broonie@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, Shuah Khan <shuah@...nel.org>,
Lorenzo Stoakes <lorenzo.stoakes@...cle.com>, linux-mm@...ck.org,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 3/4] selftests/mm: Report unique test names for each
cow test
On 03.06.25 16:58, Mark Brown wrote:
> On Tue, Jun 03, 2025 at 04:15:42PM +0200, David Hildenbrand wrote:
>> On 03.06.25 15:21, Mark Brown wrote:
>
>>>>> } else {
>>>>> - ksft_test_result_fail("Leak from parent into child\n");
>
>>>> Same here and in other cases below (I probably didn't catch all).
>
>>>> We should log that somehow to indicate what exactly is going wrong, likely
>>>> using ksft_print_msg().
>
>>> Can you send a patch with the logging that you think would be clear
>>> please?
>>> I dropped these because they just seemed to be reporting the> overall
>> point of the test, unlike the cases where we ran into some error
>>> during the setup and didn't actually manage to perform the test we were
>>> trying to do. Perhaps the tests should be renamed.
>
>> ksft_print_msg("Leak from parent into child");
>
> Can you send a patch showing when/where you want this printing please?
I'm really busy right now, unfortunately.
> Like I said I suspect the test name is just unclear here...
I would hope we find some mechanical replacement.
E.g.,
ksft_test_result_pass("No leak from parent into child\n");
becomes
ksft_print_msg("No leak from parent into child\n");
log_test_result(KSFT_PASS);
and
ksft_test_result_xfail("Leak from parent into child\n");
becomes
ksft_print_msg("Leak from parent into child\n");
log_test_result(KSFT_FAIL);
--
Cheers,
David / dhildenb
Powered by blists - more mailing lists