]> git.ipfire.org Git - thirdparty/linux.git/commit
binder: Convert binder_alloc selftests to KUnit
authorTiffany Yang <ynaffit@google.com>
Mon, 14 Jul 2025 18:53:18 +0000 (11:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 12:11:59 +0000 (14:11 +0200)
commitf6544dcdd0d2feb74f395072d8df52e3bea4be51
tree6bba1ba69480cba23b72f818967afcf5d283844e
parent5e024582f494c6ff5eb2bec5183fd1eb35462500
binder: Convert binder_alloc selftests to KUnit

Convert the existing binder_alloc_selftest tests into KUnit tests. These
tests allocate and free an exhaustive combination of buffers with
various sizes and alignments. This change allows them to be run without
blocking or otherwise interfering with other processes in binder.

This test is refactored into more meaningful cases in the subsequent
patch.

Signed-off-by: Tiffany Yang <ynaffit@google.com>
Acked-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20250714185321.2417234-6-ynaffit@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/Kconfig
drivers/android/Makefile
drivers/android/binder.c
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h
drivers/android/binder_alloc_selftest.c [deleted file]
drivers/android/tests/binder_alloc_kunit.c