test/test_allocator.c

changeset 419
b5d6cb88d05d
parent 414
81a4c3a63e65
child 421
aa465fac4ef6
equal deleted inserted replaced
418:ab30d32ae798 419:b5d6cb88d05d
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);

mercurial