Re: [PATCH 05/11] drm/tests: helpers: Create an helper to allocate a locking ctx

From: Javier Martinez Canillas
Date: Wed Jul 19 2023 - 15:12:34 EST


Maxime Ripard <mripard@xxxxxxxxxx> writes:

> As we get more and more tests, the locking context initialisation
> creates more and more boilerplate, both at creation and destruction.
>
> Let's create a helper that will allocate, initialise a context, and
> register kunit actions to clean up once the test is done.
>
> Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
> ---

Reviewed-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>

--
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat