Maxime Ripard 394ba10e47
drm/tests: helpers: Create a helper to allocate an atomic state
As we gain more tests, boilerplate to allocate an atomic state and free
it starts to be there more and more as well.

In order to reduce the allocation boilerplate, we can create a helper
to create that atomic state, and call an action when the test is done.
This will also clean up the exit path.

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-6-952565ccccfe@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
2023-07-31 14:19:57 +02:00
..
2023-01-26 11:52:13 +02:00
2021-07-29 09:12:01 +02:00
2023-02-22 18:28:03 -08:00
2023-01-16 15:33:28 +10:00
2021-08-13 17:50:48 +02:00
2021-11-30 09:41:28 +01:00
2023-05-22 12:23:50 +02:00
2023-02-24 12:58:55 -08:00
2022-06-27 13:45:48 +02:00
2020-07-16 18:16:31 -04:00
2023-07-11 09:23:20 +02:00
2021-10-04 12:06:14 +02:00
2023-06-02 20:05:45 +03:00
2023-02-16 12:29:51 +02:00