Re: [PATCH v2 3/3] kunit: Use KUNIT_EXPECT_MEMEQ macro

From: Daniel Latypov
Date: Tue Aug 02 2022 - 18:30:13 EST


On Tue, Aug 2, 2022 at 2:27 PM Maíra Canal <mairacanal@xxxxxxxxxx> wrote:
>
> Use KUNIT_EXPECT_MEMEQ to compare memory blocks in replacement of the
> KUNIT_EXPECT_EQ macro. Therefor, the statement
>
> KUNIT_EXPECT_EQ(test, memcmp(foo, bar, size), 0);
>
> is replaced by:
>
> KUNIT_EXPECT_MEMEQ(test, foo, bar, size);
>
> Signed-off-by: Maíra Canal <mairacanal@xxxxxxxxxx>

Acked-by: Daniel Latypov <dlatypov@xxxxxxxxxx>

I didn't go and find the appropriate commit from the drm tree to base
this on, so I couldn't apply it locally.
But looking at the diff itself, looks good!