kunit: executor_test: Use kunit_add_action()
authorDavid Gow <davidgow@google.com>
Thu, 25 May 2023 04:21:29 +0000 (12:21 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 25 May 2023 14:53:01 +0000 (08:53 -0600)
commit00e63f8afcfc6bf93d75141c51d35e8a40e86363
tree2e2107623525c6b11c00a99e075c3398214d2882
parentb9dce8a1ed3efe0f5c0957f4605140f204226a0f
kunit: executor_test: Use kunit_add_action()

Now we have the kunit_add_action() function, we can use it to implement
kfree_at_end() and free_subsuite_at_end() without the need for extra
helper functions.

Reviewed-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/executor_test.c