Home
last modified time | relevance | path

Searched refs:resources (Results 1 – 4 of 4) sorted by relevance

/lib/kunit/
Dkunit-test.c140 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_init_resources()
159 KUNIT_EXPECT_TRUE(test, list_is_last(&res->node, &ctx->test.resources)); in kunit_resource_test_alloc_resource()
198 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_destroy_resource()
212 KUNIT_EXPECT_FALSE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource()
218 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource()
224 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource()
239 struct kunit_resource *resources[5]; in kunit_resource_test_cleanup_resources() local
241 for (i = 0; i < ARRAY_SIZE(resources); i++) { in kunit_resource_test_cleanup_resources()
242 resources[i] = kunit_alloc_and_get_resource(&ctx->test, in kunit_resource_test_cleanup_resources()
247 kunit_put_resource(resources[i]); in kunit_resource_test_cleanup_resources()
[all …]
Dtest.c366 INIT_LIST_HEAD(&test->resources); in kunit_init_test()
896 if (list_empty(&test->resources)) { in kunit_cleanup()
900 res = list_last_entry(&test->resources, in kunit_cleanup()
Dresource.c40 list_add_tail(&res->node, &test->resources); in __kunit_add_resource()
/lib/
DKconfig.debug1107 an arch-specific hardlockup detector or if resources needed