test/test_allocator.c

changeset 443
d6d8712e15bc
parent 434
38ee262e8b94
     1.1 --- a/test/test_allocator.c	Tue Sep 28 18:03:10 2021 +0200
     1.2 +++ b/test/test_allocator.c	Tue Sep 28 18:05:52 2021 +0200
     1.3 @@ -80,22 +80,13 @@
     1.4      }
     1.5  
     1.6      suite = CU_add_suite("default allocator", NULL, NULL);
     1.7 -    if (NULL == suite) {
     1.8 -        CU_cleanup_registry();
     1.9 -        return CU_get_error();
    1.10 -    }
    1.11  
    1.12 -    if (
    1.13 -            !CU_add_test(suite, "default allocator available", test_default_allocator_available) ||
    1.14 -            !CU_add_test(suite, "test of malloc()", test_default_malloc)||
    1.15 -            !CU_add_test(suite, "test of realloc()", test_default_realloc) ||
    1.16 -            !CU_add_test(suite, "test of realloc() via cxReallocate", test_default_reallocate) ||
    1.17 -            !CU_add_test(suite, "test of calloc()", test_default_calloc) ||
    1.18 -            !CU_add_test(suite, "test of free()", test_default_free)
    1.19 -            ) {
    1.20 -        CU_cleanup_registry();
    1.21 -        return CU_get_error();
    1.22 -    }
    1.23 +    CU_add_test(suite, "default allocator available", test_default_allocator_available);
    1.24 +    CU_add_test(suite, "test of malloc()", test_default_malloc);
    1.25 +    CU_add_test(suite, "test of realloc()", test_default_realloc);
    1.26 +    CU_add_test(suite, "test of realloc() via cxReallocate", test_default_reallocate);
    1.27 +    CU_add_test(suite, "test of calloc()", test_default_calloc);
    1.28 +    CU_add_test(suite, "test of free()", test_default_free);
    1.29  
    1.30      CU_basic_set_mode(UCX_CU_BRM);
    1.31  

mercurial