Lines Matching full:resources
107 * Context for testing test managed resources
108 * is_resource_initialized is used to test arbitrary resources
139 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_init_resources()
158 KUNIT_EXPECT_TRUE(test, list_is_last(&res->node, &ctx->test.resources)); in kunit_resource_test_alloc_resource()
197 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_destroy_resource()
211 KUNIT_EXPECT_FALSE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource()
217 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource()
223 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource()
238 struct kunit_resource *resources[5]; in kunit_resource_test_cleanup_resources() local
240 for (i = 0; i < ARRAY_SIZE(resources); i++) { in kunit_resource_test_cleanup_resources()
241 resources[i] = kunit_alloc_and_get_resource(&ctx->test, in kunit_resource_test_cleanup_resources()
246 kunit_put_resource(resources[i]); in kunit_resource_test_cleanup_resources()
251 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_cleanup_resources()
366 KUNIT_EXPECT_TRUE(test, list_empty(&test->resources)); in kunit_resource_test_static()
402 KUNIT_EXPECT_TRUE(test, list_empty(&test->resources)); in kunit_resource_test_named()