Dynamic memory pool test */
| 33 | |
| 34 | /* Dynamic memory pool test */ |
| 35 | static void test_mp_dynamic_create(void) |
| 36 | { |
| 37 | mp_dynamic = rt_mp_create("mp_dynamic", MEMPOOL_BLOCK_COUNT, MEMPOOL_BLOCK_SIZE); |
| 38 | uassert_not_null(mp_dynamic); |
| 39 | uassert_str_equal(mp_dynamic->parent.name, "mp_dynamic"); |
| 40 | uassert_true(mp_dynamic->block_total_count == MEMPOOL_BLOCK_COUNT); |
| 41 | uassert_true(mp_dynamic->block_free_count == MEMPOOL_BLOCK_COUNT); |
| 42 | } |
| 43 | |
| 44 | /* Allocation and free test for static */ |
| 45 | static void test_mp_static_alloc_free(void) |
nothing calls this directly
no test coverage detected