linux/drivers/base/test
Brian Norris 86a5f32ed8 drivers: base: test: Add ...find_device_by...(... NULL) tests
We recently updated these device_match*() (and therefore, various
*find_device_by*()) functions to return a consistent 'false' value when
trying to match a NULL handle. Add tests for this.

This provides regression-testing coverage for the sorts of bugs that
underly commit 5c8418cf40 ("PCI/pwrctrl: Unregister platform device
only if one actually exists").

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: David Gow <davidgow@google.com>
Link: https://lore.kernel.org/r/20241216201148.535115-4-briannorris@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-24 09:48:09 +01:00
..
.kunitconfig drivers: base: Add basic devm tests for root devices 2023-08-12 13:06:15 +02:00
Kconfig drivers: base: test: Enable device model tests with KUNIT_ALL_TESTS 2024-12-24 09:48:09 +01:00
Makefile drivers: base: Add basic devm tests for platform devices 2023-08-12 13:06:16 +02:00
platform-device-test.c drivers: base: test: Add ...find_device_by...(... NULL) tests 2024-12-24 09:48:09 +01:00
property-entry-test.c drivers: base: test: Make property entry API test modular 2023-10-05 13:11:44 +02:00
root-device-test.c drivers: base: test: Add missing MODULE_* macros to root device tests 2023-08-16 19:01:29 +02:00
test_async_driver_probe.c driver core: test_async: fix an error code 2023-08-05 08:31:41 +02:00