drm/format-helper: Use KUNIT_EXPECT_MEMEQ macro
authorMaíra Canal <mairacanal@riseup.net>
Mon, 30 Jan 2023 12:55:55 +0000 (09:55 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Thu, 2 Feb 2023 10:40:15 +0000 (07:40 -0300)
commit4fae160fde76e9dc929ba57ec0efbbc1197daaf0
tree5e84a527c96255c186d5ddad0603ae99af33d7d6
parentc913cd5489930abbb557ef144a333846286754c3
drm/format-helper: Use KUNIT_EXPECT_MEMEQ macro

Commit b8a926bea8b1 ("kunit: Introduce KUNIT_EXPECT_MEMEQ and
KUNIT_EXPECT_MEMNEQ macros") introduced a new macro to compare blocks of
memory and, if the test fails, print the result in a human-friendly
format. Therefore, use KUNIT_EXPECT_MEMEQ to compare memory blocks in
replacement of the KUNIT_EXPECT_EQ macro.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230130125554.363481-1-mairacanal@riseup.net
drivers/gpu/drm/tests/drm_format_helper_test.c