Maxime Ripard 6e193f9fbb
drm/tests: helpers: Create a helper to allocate a locking ctx
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.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Maíra Canal <mairacanal@riseup.net>
Link: https://lore.kernel.org/r/20230728-kms-kunit-actions-rework-v3-5-952565ccccfe@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
2023-07-31 14:19:57 +02:00
..
2023-07-17 15:37:57 +02:00
2023-07-17 15:37:57 +02:00
2023-07-17 15:37:57 +02:00
2023-07-29 21:05:10 +02:00
2023-03-14 17:07:48 +01:00
2023-07-24 15:44:47 +02:00
2023-07-11 09:23:20 +02:00
2023-07-17 15:37:57 +02:00
2023-06-19 16:01:25 +10:00
2023-05-24 18:03:30 +02:00
2023-02-20 14:56:52 +01:00
2023-07-24 20:14:42 +02:00