mirror_ubuntu-kernels/drivers/gpu/drm/tests
Michał Winiarski 6da75526fc drm/format: Use appropriate types in expect/assert
drm_format_info_* functions don't return bool, and the info variable is a
pointer.
Expecting non-NULL info will cause the test to crash if it is NULL in
checks that follow (which dereference it).
Use appropriate KUNIT_EXPECT/KUNIT_ASSERT variants.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Maíra Canal <mairacanal@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20220831215608.349269-1-michal.winiarski@intel.com
2022-09-09 15:54:12 -03:00
..
.kunitconfig
drm_buddy_test.c drm: selftest: convert drm_buddy selftest to KUnit 2022-07-11 14:00:03 +02:00
drm_cmdline_parser_test.c drm/cmdline-parser: Use assert when needed 2022-09-01 08:45:24 -03:00
drm_damage_helper_test.c
drm_dp_mst_helper_test.c drm: selftest: convert drm_dp_mst_helper selftest to KUnit 2022-07-11 14:00:00 +02:00
drm_format_helper_test.c drm/format-helper: Rework XRGB8888-to-RGBG565 conversion 2022-08-10 09:18:45 +02:00
drm_format_test.c drm/format: Use appropriate types in expect/assert 2022-09-09 15:54:12 -03:00
drm_framebuffer_test.c drm: selftest: convert drm_framebuffer selftest to KUnit 2022-07-11 14:00:01 +02:00
drm_mm_test.c drm: selftest: convert drm_mm selftest to KUnit 2022-07-11 14:00:05 +02:00
drm_plane_helper_test.c drm/atomic-helper: Remove _HELPER_ infix from DRM_PLANE_HELPER_NO_SCALING 2022-07-26 18:42:00 +02:00
drm_rect_test.c drm: selftest: convert drm_rect selftest to KUnit 2022-07-11 13:59:55 +02:00
Makefile drm: selftest: convert drm_mm selftest to KUnit 2022-07-11 14:00:05 +02:00