29 #include "cx/allocator.h" |
29 #include "cx/allocator.h" |
30 #include "test_config.h" |
30 #include "test_config.h" |
31 |
31 |
32 void test_default_allocator_available(void) { |
32 void test_default_allocator_available(void) { |
33 cx_allocator_class *clazz = cxDefaultAllocator->cl; |
33 cx_allocator_class *clazz = cxDefaultAllocator->cl; |
34 CU_ASSERT_PTR_EQUAL(clazz, &cx_default_allocator_class) |
34 CU_ASSERT_PTR_NOT_NULL(clazz) |
35 } |
35 } |
36 |
36 |
37 void test_default_malloc(void) { |
37 void test_default_malloc(void) { |
38 void *test = cxMalloc(cxDefaultAllocator, 16); |
38 void *test = cxMalloc(cxDefaultAllocator, 16); |
39 CU_ASSERT_PTR_NOT_NULL(test); |
39 CU_ASSERT_PTR_NOT_NULL(test); |