Function report |
Source Code:lib\kunit\test-test.c |
Create Date:2022-07-28 06:39:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:TODO(brendanhiggins@google.com): replace the arrays that keep track of the* order of allocation and freeing with strict mocks using the IN_SEQUENCE macro* to assert allocation and freeing order when the feature becomes available.
Proto:static void kunit_resource_test_proper_free_ordering(struct kunit *test)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kunit * | test |
| 269 | kunit_alloc_and_get_resource( & test, fake_resource_1_init, fake_resource_1_free, GFP_KERNEL, ctx) |
| 280 | KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, allocate_order[0], 2) |
| 281 | KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, allocate_order[1], 1) |
| 283 | kunit_cleanup( & test) |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |