65 UCX_TEST_BEGIN |
65 UCX_TEST_BEGIN |
66 ucx_mempool_malloc(pool, sizeof(int)); |
66 ucx_mempool_malloc(pool, sizeof(int)); |
67 intptr_t *test = (intptr_t*) ucx_mempool_malloc(pool, sizeof(intptr_t)); |
67 intptr_t *test = (intptr_t*) ucx_mempool_malloc(pool, sizeof(intptr_t)); |
68 |
68 |
69 UCX_TEST_ASSERT(pool->ndata == 2, "counter not incremented"); |
69 UCX_TEST_ASSERT(pool->ndata == 2, "counter not incremented"); |
70 UCX_TEST_ASSERT(pool->size == 17, "chcap not called"); |
70 UCX_TEST_ASSERT(pool->size == 2, "chcap not called"); |
71 |
71 |
72 intptr_t *pooladdr = |
72 intptr_t *pooladdr = |
73 (intptr_t*)((char*)pool->data[1] + sizeof(ucx_destructor)); |
73 (intptr_t*)((char*)pool->data[1] + sizeof(ucx_destructor)); |
74 *pooladdr = 5; |
74 *pooladdr = 5; |
75 |
75 |