Re: [PATCH v2] ww_mutex: convert self-test to KUnit

2025-02-14 Thread Tamir Duberstein
On Fri, Feb 14, 2025 at 4:48 AM Peter Zijlstra wrote: > > On Thu, Feb 13, 2025 at 10:42:24AM -0500, Tamir Duberstein wrote: > > On Thu, Feb 13, 2025 at 6:59 AM Peter Zijlstra wrote: > > > > > > On Thu, Feb 13, 2025 at 06:40:20AM -0500, Tamir Duberstein wrote: > > > > Convert this unit test to a K

Re: [PATCH v2] ww_mutex: convert self-test to KUnit

2025-02-14 Thread Peter Zijlstra
On Thu, Feb 13, 2025 at 10:42:24AM -0500, Tamir Duberstein wrote: > On Thu, Feb 13, 2025 at 6:59 AM Peter Zijlstra wrote: > > > > On Thu, Feb 13, 2025 at 06:40:20AM -0500, Tamir Duberstein wrote: > > > Convert this unit test to a KUnit test. This allows the test to benefit > > > from the KUnit too

Re: [PATCH v2] ww_mutex: convert self-test to KUnit

2025-02-13 Thread Tamir Duberstein
On Thu, Feb 13, 2025 at 6:59 AM Peter Zijlstra wrote: > > On Thu, Feb 13, 2025 at 06:40:20AM -0500, Tamir Duberstein wrote: > > Convert this unit test to a KUnit test. This allows the test to benefit > > from the KUnit tooling. Note that care is taken to avoid test-ending > > assertions in worker

Re: [PATCH v2] ww_mutex: convert self-test to KUnit

2025-02-13 Thread Peter Zijlstra
On Thu, Feb 13, 2025 at 06:40:20AM -0500, Tamir Duberstein wrote: > Convert this unit test to a KUnit test. This allows the test to benefit > from the KUnit tooling. Note that care is taken to avoid test-ending > assertions in worker threads, which is unsafe in KUnit (and wasn't done > before this

[PATCH v2] ww_mutex: convert self-test to KUnit

2025-02-13 Thread Tamir Duberstein
Convert this unit test to a KUnit test. This allows the test to benefit from the KUnit tooling. Note that care is taken to avoid test-ending assertions in worker threads, which is unsafe in KUnit (and wasn't done before this change either). Signed-off-by: Tamir Duberstein --- I tested this using: