test/test_allocator.c

changeset 434
38ee262e8b94
parent 421
aa465fac4ef6
child 443
d6d8712e15bc
     1.1 --- a/test/test_allocator.c	Sun Sep 26 17:58:27 2021 +0200
     1.2 +++ b/test/test_allocator.c	Sun Sep 26 18:01:51 2021 +0200
     1.3 @@ -60,12 +60,6 @@
     1.4      free(test);
     1.5  }
     1.6  
     1.7 -void test_reallocate_null(void) {
     1.8 -    int rval = cxReallocate(cxDefaultAllocator, NULL, 16);
     1.9 -    CU_ASSERT_NOT_EQUAL(rval, 0);
    1.10 -    CU_ASSERT_EQUAL(errno, EINVAL);
    1.11 -}
    1.12 -
    1.13  void test_default_calloc(void) {
    1.14      void *test = cxCalloc(cxDefaultAllocator, 8, 2);
    1.15      CU_ASSERT_PTR_NOT_NULL(test)
    1.16 @@ -96,7 +90,6 @@
    1.17              !CU_add_test(suite, "test of malloc()", test_default_malloc)||
    1.18              !CU_add_test(suite, "test of realloc()", test_default_realloc) ||
    1.19              !CU_add_test(suite, "test of realloc() via cxReallocate", test_default_reallocate) ||
    1.20 -            !CU_add_test(suite, "test of cxReallocate with NULL", test_reallocate_null) ||
    1.21              !CU_add_test(suite, "test of calloc()", test_default_calloc) ||
    1.22              !CU_add_test(suite, "test of free()", test_default_free)
    1.23              ) {

mercurial