[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aXi88qhW_Cgvk7fT@yury>
Date: Tue, 27 Jan 2026 08:26:10 -0500
From: Yury Norov <ynorov@...dia.com>
To: Ryota Sakamoto <sakamo.ryota@...il.com>
Cc: Yury Norov <yury.norov@...il.com>,
Rasmus Villemoes <linux@...musvillemoes.dk>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] lib/tests: extend KUnit test for bitops with more cases
On Fri, Jan 23, 2026 at 12:40:41AM +0900, Ryota Sakamoto wrote:
> Extend a KUnit test suite for the bitops API to cover more APIs from
> include/asm-generic/bitops/instrumented-atomic.h.
>
> - change_bit()
> - test_and_set_bit()
> - test_and_clear_bit()
> - test_and_change_bit()
>
> Verified on x86_64, i386, and arm64 architectures.
>
> Sample KUnit output:
>
> KTAP version 1
> # Subtest: test_change_bit
> ok 1 BITOPS_4
> ok 2 BITOPS_7
> ok 3 BITOPS_11
> ok 4 BITOPS_31
> ok 5 BITOPS_88
> # test_change_bit: pass:5 fail:0 skip:0 total:5
> ok 2 test_change_bit
> KTAP version 1
> # Subtest: test_test_and_set_bit_test_and_clear_bit
> ok 1 BITOPS_4
> ok 2 BITOPS_7
> ok 3 BITOPS_11
> ok 4 BITOPS_31
> ok 5 BITOPS_88
> # test_test_and_set_bit_test_and_clear_bit: pass:5 fail:0 skip:0 total:5
> ok 3 test_test_and_set_bit_test_and_clear_bit
> KTAP version 1
> # Subtest: test_test_and_change_bit
> ok 1 BITOPS_4
> ok 2 BITOPS_7
> ok 3 BITOPS_11
> ok 4 BITOPS_31
> ok 5 BITOPS_88
> # test_test_and_change_bit: pass:5 fail:0 skip:0 total:5
> ok 4 test_test_and_change_bit
>
> Signed-off-by: Ryota Sakamoto <sakamo.ryota@...il.com>
Applied, thanks!
Powered by blists - more mailing lists