kunit: test: add tests for KUnit managed resources
authorAvinash Kondareddy <akndr41@gmail.com>
Mon, 23 Sep 2019 09:02:42 +0000 (02:02 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 30 Sep 2019 23:35:01 +0000 (17:35 -0600)
commit73ba5aaf93b41e641a250530f48274d783dd56fc
tree95e248422ac13533cb7ab57276ab840b03b9f739
parente4aea8f8532b55f966d828efcf720f8aeb203e13
kunit: test: add tests for KUnit managed resources

Add unit tests for KUnit managed resources. KUnit managed resources
(struct kunit_resource) are resources that are automatically cleaned up
at the end of a KUnit test, similar to the concept of devm_* managed
resources.

Signed-off-by: Avinash Kondareddy <akndr41@gmail.com>
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/test-test.c