added semicolons to assert makros

Thu, 04 Oct 2012 11:37:23 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 04 Oct 2012 11:37:23 +0200
changeset 40
583718dd4cf3
parent 39
bf8ab7bb74ff
child 41
7f90a03e186e

added semicolons to assert makros

test/dlist_tests.c file | annotate | diff | comparison | revisions
test/list_tests.c file | annotate | diff | comparison | revisions
test/main.c file | annotate | diff | comparison | revisions
test/map_tests.c file | annotate | diff | comparison | revisions
test/mpool_tests.c file | annotate | diff | comparison | revisions
     1.1 --- a/test/dlist_tests.c	Tue Oct 02 13:43:17 2012 +0200
     1.2 +++ b/test/dlist_tests.c	Thu Oct 04 11:37:23 2012 +0200
     1.3 @@ -8,12 +8,12 @@
     1.4      UcxDlist *list = ucx_dlist_append(NULL, "Hello");
     1.5      UCX_TEST_BEGIN
     1.6      
     1.7 -    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed")
     1.8 +    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed");
     1.9      
    1.10      list = ucx_dlist_append(list, " World!");
    1.11      
    1.12 -    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
    1.13 -    UCX_TEST_ASSERT(list->next->next == NULL, "failed")
    1.14 +    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed");
    1.15 +    UCX_TEST_ASSERT(list->next->next == NULL, "failed");
    1.16      UCX_TEST_END
    1.17      
    1.18      ucx_dlist_free(list);
    1.19 @@ -25,9 +25,9 @@
    1.20  
    1.21      list = ucx_dlist_prepend(list, "Hello");
    1.22      
    1.23 -    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed")
    1.24 -    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
    1.25 -    UCX_TEST_ASSERT(list->next->next == NULL, "failed")
    1.26 +    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed");
    1.27 +    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed");
    1.28 +    UCX_TEST_ASSERT(list->next->next == NULL, "failed");
    1.29      
    1.30      UCX_TEST_END
    1.31      ucx_dlist_free(list);
    1.32 @@ -42,8 +42,8 @@
    1.33      list3 = ucx_dlist_prepend(list3, "Hallo");
    1.34      UCX_TEST_BEGIN
    1.35      
    1.36 -    UCX_TEST_ASSERT(ucx_dlist_equals(list, list2, cmp_string, NULL), "failed")
    1.37 -    UCX_TEST_ASSERT(!ucx_dlist_equals(list, list3, cmp_string, NULL), "failed")
    1.38 +    UCX_TEST_ASSERT(ucx_dlist_equals(list, list2, cmp_string, NULL), "failed");
    1.39 +    UCX_TEST_ASSERT(!ucx_dlist_equals(list, list3, cmp_string, NULL), "failed");
    1.40      
    1.41      UCX_TEST_END
    1.42      ucx_dlist_free(list3);
    1.43 @@ -58,9 +58,9 @@
    1.44      
    1.45      list = ucx_dlist_concat(list, list2);
    1.46      
    1.47 -    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed")
    1.48 -    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
    1.49 -    UCX_TEST_ASSERT(list->next->next == NULL, "failed")
    1.50 +    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed");
    1.51 +    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed");
    1.52 +    UCX_TEST_ASSERT(list->next->next == NULL, "failed");
    1.53      
    1.54      UCX_TEST_END
    1.55      ucx_dlist_free(list);
    1.56 @@ -130,9 +130,9 @@
    1.57      
    1.58      list = ucx_dlist_remove(list, ucx_dlist_get(list, 1));
    1.59      
    1.60 -    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed")
    1.61 -    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
    1.62 -    UCX_TEST_ASSERT(list->next->next == NULL, "failed")
    1.63 +    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed");
    1.64 +    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed");
    1.65 +    UCX_TEST_ASSERT(list->next->next == NULL, "failed");
    1.66      
    1.67      UCX_TEST_END
    1.68      ucx_dlist_free(list);
    1.69 @@ -152,9 +152,9 @@
    1.70      UcxDlist *copy = ucx_dlist_clone(list, copy_string, NULL);
    1.71      UCX_TEST_BEGIN
    1.72  
    1.73 -    UCX_TEST_ASSERT(ucx_dlist_equals(list, copy, cmp_string, NULL), "failed")
    1.74 -    UCX_TEST_ASSERT(hello != copy->data, "first element is no copy")
    1.75 -    UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy")
    1.76 +    UCX_TEST_ASSERT(ucx_dlist_equals(list, copy, cmp_string, NULL), "failed");
    1.77 +    UCX_TEST_ASSERT(hello != copy->data, "first element is no copy");
    1.78 +    UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy");
    1.79  
    1.80      UCX_TEST_END
    1.81      free(copy->next->data);
     2.1 --- a/test/list_tests.c	Tue Oct 02 13:43:17 2012 +0200
     2.2 +++ b/test/list_tests.c	Thu Oct 04 11:37:23 2012 +0200
     2.3 @@ -7,12 +7,12 @@
     2.4  UCX_TEST_IMPLEMENT(test_ucx_list_append) {
     2.5      UcxList *list = ucx_list_append(NULL, "Hello");
     2.6      UCX_TEST_BEGIN
     2.7 -    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed")
     2.8 +    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed");
     2.9      
    2.10      list = ucx_list_append(list, " World!");
    2.11      
    2.12 -    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
    2.13 -    UCX_TEST_ASSERT(list->next->next == NULL, "failed")
    2.14 +    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed");
    2.15 +    UCX_TEST_ASSERT(list->next->next == NULL, "failed");
    2.16  
    2.17      UCX_TEST_END
    2.18      ucx_list_free(list);
    2.19 @@ -23,9 +23,9 @@
    2.20      UCX_TEST_BEGIN
    2.21      list = ucx_list_prepend(list, "Hello");
    2.22      
    2.23 -    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed")
    2.24 -    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
    2.25 -    UCX_TEST_ASSERT(list->next->next == NULL, "failed")
    2.26 +    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed");
    2.27 +    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed");
    2.28 +    UCX_TEST_ASSERT(list->next->next == NULL, "failed");
    2.29      
    2.30      UCX_TEST_END
    2.31      ucx_list_free(list);
    2.32 @@ -40,8 +40,8 @@
    2.33      list3 = ucx_list_prepend(list3, "Hallo");
    2.34      
    2.35      UCX_TEST_BEGIN
    2.36 -    UCX_TEST_ASSERT(ucx_list_equals(list, list2, cmp_string, NULL), "failed")
    2.37 -    UCX_TEST_ASSERT(!ucx_list_equals(list, list3, cmp_string, NULL), "failed")
    2.38 +    UCX_TEST_ASSERT(ucx_list_equals(list, list2, cmp_string, NULL), "failed");
    2.39 +    UCX_TEST_ASSERT(!ucx_list_equals(list, list3, cmp_string, NULL), "failed");
    2.40      UCX_TEST_END
    2.41      
    2.42      ucx_list_free(list3);
    2.43 @@ -56,9 +56,9 @@
    2.44      list = ucx_list_concat(list, list2);
    2.45      UCX_TEST_BEGIN
    2.46      
    2.47 -    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed")
    2.48 -    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
    2.49 -    UCX_TEST_ASSERT(list->next->next == NULL, "failed")
    2.50 +    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed");
    2.51 +    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed");
    2.52 +    UCX_TEST_ASSERT(list->next->next == NULL, "failed");
    2.53      
    2.54      UCX_TEST_END
    2.55      if (list->next == NULL) {
    2.56 @@ -118,9 +118,9 @@
    2.57      
    2.58      list = ucx_list_remove(list, ucx_list_get(list, 1));
    2.59      
    2.60 -    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed")
    2.61 -    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
    2.62 -    UCX_TEST_ASSERT(list->next->next == NULL, "failed")
    2.63 +    UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed");
    2.64 +    UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed");
    2.65 +    UCX_TEST_ASSERT(list->next->next == NULL, "failed");
    2.66      UCX_TEST_END
    2.67      
    2.68      ucx_list_free(list);
    2.69 @@ -140,9 +140,9 @@
    2.70      UcxList *copy = ucx_list_clone(list, copy_string, NULL);
    2.71      UCX_TEST_BEGIN
    2.72  
    2.73 -    UCX_TEST_ASSERT(ucx_list_equals(list, copy, cmp_string, NULL), "failed")
    2.74 -    UCX_TEST_ASSERT(hello != copy->data, "first element is no copy")
    2.75 -    UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy")
    2.76 +    UCX_TEST_ASSERT(ucx_list_equals(list, copy, cmp_string, NULL), "failed");
    2.77 +    UCX_TEST_ASSERT(hello != copy->data, "first element is no copy");
    2.78 +    UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy");
    2.79  
    2.80      UCX_TEST_END
    2.81      free(copy->next->data);
     3.1 --- a/test/main.c	Tue Oct 02 13:43:17 2012 +0200
     3.2 +++ b/test/main.c	Thu Oct 04 11:37:23 2012 +0200
     3.3 @@ -53,13 +53,13 @@
     3.4  
     3.5  UCX_TEST_IMPLEMENT(testTestSuitePositive) {
     3.6      UCX_TEST_BEGIN
     3.7 -    UCX_TEST_ASSERT(2*2 == 4, "the test framework fails")
     3.8 +    UCX_TEST_ASSERT(2*2 == 4, "the test framework fails");
     3.9      UCX_TEST_END
    3.10  }
    3.11  
    3.12  UCX_TEST_IMPLEMENT(testTestSuiteNegative) {
    3.13      UCX_TEST_BEGIN
    3.14 -    UCX_TEST_ASSERT(2*(-2) == 4, "the test framework works")
    3.15 +    UCX_TEST_ASSERT(2*(-2) == 4, "the test framework works");
    3.16      UCX_TEST_END
    3.17  }
    3.18  
     4.1 --- a/test/map_tests.c	Tue Oct 02 13:43:17 2012 +0200
     4.2 +++ b/test/map_tests.c	Thu Oct 04 11:37:23 2012 +0200
     4.3 @@ -7,8 +7,8 @@
     4.4  UCX_TEST_IMPLEMENT(test_ucx_map_new) {
     4.5      UcxMap *map = ucx_map_new(16);
     4.6      UCX_TEST_BEGIN
     4.7 -    UCX_TEST_ASSERT(map->size == 16, "wrong size")
     4.8 -    UCX_TEST_ASSERT(map->map != NULL, "failed")
     4.9 +    UCX_TEST_ASSERT(map->size == 16, "wrong size");
    4.10 +    UCX_TEST_ASSERT(map->map != NULL, "failed");
    4.11      
    4.12      UCX_TEST_END
    4.13      ucx_map_free(map);
    4.14 @@ -17,9 +17,9 @@
    4.15  UCX_TEST_IMPLEMENT(test_ucx_key) {
    4.16      UcxKey key = ucx_key("This is a text.", 15);
    4.17      UCX_TEST_BEGIN
    4.18 -    UCX_TEST_ASSERT(strncmp(key.data, "This is a text.", 15) == 0, "failed")
    4.19 -    UCX_TEST_ASSERT(key.len == 15, "failed")
    4.20 -    UCX_TEST_ASSERT(key.hash == 1261186027, "hash failed")
    4.21 +    UCX_TEST_ASSERT(strncmp(key.data, "This is a text.", 15) == 0, "failed");
    4.22 +    UCX_TEST_ASSERT(key.len == 15, "failed");
    4.23 +    UCX_TEST_ASSERT(key.hash == 1261186027, "hash failed");
    4.24      
    4.25      UCX_TEST_END
    4.26  }
    4.27 @@ -38,30 +38,30 @@
    4.28      ucx_map_cstr_put(map, "KeY3", &td[3]); /* 2 */
    4.29      ucx_map_cstr_put(map, "KEY4", &td[4]); /* 0 */
    4.30      
    4.31 -    UCX_TEST_ASSERT(*((int*)map->map[0]->data) == td[0], "failed Key0")
    4.32 -    UCX_TEST_ASSERT(map->map[0]->next != NULL, "no list at slot 0")
    4.33 -    UCX_TEST_ASSERT(*((int*)map->map[0]->next->data) == td[2], "failed Key2")
    4.34 -    UCX_TEST_ASSERT(map->map[0]->next->next != NULL, "list corrupt at slot 0")
    4.35 +    UCX_TEST_ASSERT(*((int*)map->map[0]->data) == td[0], "failed Key0");
    4.36 +    UCX_TEST_ASSERT(map->map[0]->next != NULL, "no list at slot 0");
    4.37 +    UCX_TEST_ASSERT(*((int*)map->map[0]->next->data) == td[2], "failed Key2");
    4.38 +    UCX_TEST_ASSERT(map->map[0]->next->next != NULL, "list corrupt at slot 0");
    4.39      UCX_TEST_ASSERT(*((int*)map->map[0]->next->next->data) == td[4],
    4.40              "failed Key4")
    4.41      UCX_TEST_ASSERT(map->map[0]->next->next->next == NULL,
    4.42              "slot 0 not terminated")
    4.43  
    4.44 -    UCX_TEST_ASSERT(map->map[1] == NULL, "slot 1 not terminated")
    4.45 +    UCX_TEST_ASSERT(map->map[1] == NULL, "slot 1 not terminated");
    4.46  
    4.47 -    UCX_TEST_ASSERT(*((int*)map->map[2]->data) == td[3], "failed KeY3")
    4.48 -    UCX_TEST_ASSERT(map->map[2]->next == NULL, "slot 2 not terminated")
    4.49 +    UCX_TEST_ASSERT(*((int*)map->map[2]->data) == td[3], "failed KeY3");
    4.50 +    UCX_TEST_ASSERT(map->map[2]->next == NULL, "slot 2 not terminated");
    4.51  
    4.52 -    UCX_TEST_ASSERT(*((int*)map->map[3]->data) == td[1], "failed Key1")
    4.53 +    UCX_TEST_ASSERT(*((int*)map->map[3]->data) == td[1], "failed Key1");
    4.54  
    4.55      ucx_map_cstr_put(map, "Key0", &td[3]); /* 0 */
    4.56      
    4.57 -    UCX_TEST_ASSERT(*((int*)map->map[0]->data) == td[3], "overwrite failed")
    4.58 +    UCX_TEST_ASSERT(*((int*)map->map[0]->data) == td[3], "overwrite failed");
    4.59      UCX_TEST_ASSERT(*((int*)map->map[0]->next->data) == td[2],
    4.60              "overwrite failed")
    4.61      UCX_TEST_ASSERT(*((int*)map->map[0]->next->next->data) == td[4], 
    4.62              "overwrite failed")
    4.63 -    UCX_TEST_ASSERT(map->map[0]->next->next->next == NULL, "overwrite failed")
    4.64 +    UCX_TEST_ASSERT(map->map[0]->next->next->next == NULL, "overwrite failed");
    4.65      
    4.66      UCX_TEST_END
    4.67      ucx_map_free(map);
    4.68 @@ -85,11 +85,11 @@
    4.69      td[2] = *((int*)ucx_map_cstr_get(map, "Key2"));
    4.70      td[3] = *((int*)ucx_map_cstr_get(map, "KeY3"));
    4.71      td[4] = *((int*)ucx_map_cstr_get(map, "KEY4"));
    4.72 -    UCX_TEST_ASSERT(td[0] == 10, "failed key 0")
    4.73 -    UCX_TEST_ASSERT(td[1] == 42, "failed key 1")
    4.74 -    UCX_TEST_ASSERT(td[2] == 70, "failed key 2")
    4.75 -    UCX_TEST_ASSERT(td[3] == 11200, "failed key 3")
    4.76 -    UCX_TEST_ASSERT(td[4] == 80000, "failed key 4")
    4.77 +    UCX_TEST_ASSERT(td[0] == 10, "failed key 0");
    4.78 +    UCX_TEST_ASSERT(td[1] == 42, "failed key 1");
    4.79 +    UCX_TEST_ASSERT(td[2] == 70, "failed key 2");
    4.80 +    UCX_TEST_ASSERT(td[3] == 11200, "failed key 3");
    4.81 +    UCX_TEST_ASSERT(td[4] == 80000, "failed key 4");
    4.82  
    4.83      UCX_TEST_END
    4.84      ucx_map_free(map);
     5.1 --- a/test/mpool_tests.c	Tue Oct 02 13:43:17 2012 +0200
     5.2 +++ b/test/mpool_tests.c	Thu Oct 04 11:37:23 2012 +0200
     5.3 @@ -9,9 +9,9 @@
     5.4  UCX_TEST_IMPLEMENT(test_ucx_mempool_new) {
     5.5      UcxMempool *pool = ucx_mempool_new(16);
     5.6      UCX_TEST_BEGIN
     5.7 -    UCX_TEST_ASSERT(pool->size == 16, "wrong size")
     5.8 -    UCX_TEST_ASSERT(pool->ndata == 0, "uninitialized counter")
     5.9 -    UCX_TEST_ASSERT(pool->data != NULL, "no memory addressed")
    5.10 +    UCX_TEST_ASSERT(pool->size == 16, "wrong size");
    5.11 +    UCX_TEST_ASSERT(pool->ndata == 0, "uninitialized counter");
    5.12 +    UCX_TEST_ASSERT(pool->data != NULL, "no memory addressed");
    5.13      UCX_TEST_END
    5.14      ucx_mempool_free(pool);
    5.15  }
    5.16 @@ -22,14 +22,14 @@
    5.17      UCX_TEST_BEGIN
    5.18      intptr_t *test = (intptr_t*) ucx_mempool_malloc(pool, sizeof(intptr_t));
    5.19      
    5.20 -    UCX_TEST_ASSERT(pool->ndata == 1, "counter not incremented")
    5.21 -    UCX_TEST_ASSERT(pool->size == 1, "chcap called")
    5.22 +    UCX_TEST_ASSERT(pool->ndata == 1, "counter not incremented");
    5.23 +    UCX_TEST_ASSERT(pool->size == 1, "chcap called");
    5.24      
    5.25      intptr_t *pooladdr =
    5.26              (intptr_t*)((char*)pool->data[0] + sizeof(ucx_destructor));
    5.27      *pooladdr = 5;
    5.28      
    5.29 -    UCX_TEST_ASSERT(*test == 5, "wrong pointer")
    5.30 +    UCX_TEST_ASSERT(*test == 5, "wrong pointer");
    5.31      
    5.32      UCX_TEST_END
    5.33      ucx_mempool_free(pool);
    5.34 @@ -42,14 +42,14 @@
    5.35      ucx_mempool_malloc(pool, sizeof(int));
    5.36      intptr_t *test = (intptr_t*) ucx_mempool_malloc(pool, sizeof(intptr_t));
    5.37      
    5.38 -    UCX_TEST_ASSERT(pool->ndata == 2, "counter not incremented")
    5.39 -    UCX_TEST_ASSERT(pool->size == 17, "chcap not called")
    5.40 +    UCX_TEST_ASSERT(pool->ndata == 2, "counter not incremented");
    5.41 +    UCX_TEST_ASSERT(pool->size == 17, "chcap not called");
    5.42      
    5.43      intptr_t *pooladdr =
    5.44              (intptr_t*)((char*)pool->data[1] + sizeof(ucx_destructor));
    5.45      *pooladdr = 5;
    5.46      
    5.47 -    UCX_TEST_ASSERT(*test == 5, "wrong pointer")
    5.48 +    UCX_TEST_ASSERT(*test == 5, "wrong pointer");
    5.49      
    5.50      UCX_TEST_END
    5.51      ucx_mempool_free(pool);
    5.52 @@ -62,8 +62,8 @@
    5.53      
    5.54      intptr_t *test = (intptr_t*) ucx_mempool_calloc(pool, 2, sizeof(intptr_t));
    5.55      
    5.56 -    UCX_TEST_ASSERT(test != NULL, "no memory for test data")
    5.57 -    UCX_TEST_ASSERT(test[0] == 0 && test[1] == 0, "failed")
    5.58 +    UCX_TEST_ASSERT(test != NULL, "no memory for test data");
    5.59 +    UCX_TEST_ASSERT(test[0] == 0 && test[1] == 0, "failed");
    5.60      
    5.61      UCX_TEST_END
    5.62      ucx_mempool_free(pool);
    5.63 @@ -83,7 +83,7 @@
    5.64      ucx_mempool_malloc(pool, sizeof(intptr_t));
    5.65      intptr_t *test = (intptr_t*) ucx_mempool_calloc(pool, 2, sizeof(intptr_t));
    5.66      
    5.67 -    UCX_TEST_ASSERT(cb != NULL && test != NULL, "no memory for test data")
    5.68 +    UCX_TEST_ASSERT(cb != NULL && test != NULL, "no memory for test data");
    5.69      
    5.70      test[0] = 5; test[1] = (intptr_t) cb;
    5.71      *cb = 13;
    5.72 @@ -96,7 +96,7 @@
    5.73      
    5.74      ucx_mempool_free(pool);
    5.75      
    5.76 -    UCX_TEST_ASSERT(*cb == 42, "destructor not called")
    5.77 +    UCX_TEST_ASSERT(*cb == 42, "destructor not called");
    5.78      
    5.79      UCX_TEST_END
    5.80      if (cb != NULL) free(cb);
    5.81 @@ -110,7 +110,7 @@
    5.82      UCX_TEST_BEGIN
    5.83      UcxMempool *pool = ucx_mempool_new(1);
    5.84      
    5.85 -    UCX_TEST_ASSERT(cb != NULL && test != NULL, "no memory for test data")
    5.86 +    UCX_TEST_ASSERT(cb != NULL && test != NULL, "no memory for test data");
    5.87      
    5.88      test[0] = 5; test[1] = (intptr_t) cb;
    5.89      *cb = 13;
    5.90 @@ -120,10 +120,10 @@
    5.91      ucx_destructor *pooladdr = (ucx_destructor*)
    5.92              ((char*)pool->data[0] + sizeof(ucx_destructor));
    5.93      
    5.94 -    UCX_TEST_ASSERT(*pooladdr == test_setdestr, "failed")
    5.95 +    UCX_TEST_ASSERT(*pooladdr == test_setdestr, "failed");
    5.96      
    5.97      ucx_mempool_free(pool);
    5.98 -    UCX_TEST_ASSERT(*cb == 42, "destructor not called")
    5.99 +    UCX_TEST_ASSERT(*cb == 42, "destructor not called");
   5.100      UCX_TEST_END
   5.101  
   5.102      if (test != NULL) free(test);
   5.103 @@ -139,7 +139,7 @@
   5.104      ucx_mempool_malloc(pool, sizeof(intptr_t));
   5.105      intptr_t *test = (intptr_t*) ucx_mempool_calloc(pool, 2, sizeof(intptr_t));
   5.106  
   5.107 -    UCX_TEST_ASSERT(cb != NULL && test != NULL, "no memory for test data")
   5.108 +    UCX_TEST_ASSERT(cb != NULL && test != NULL, "no memory for test data");
   5.109      
   5.110      test[0] = 5; test[1] = (intptr_t) cb;
   5.111      *cb = 13;
   5.112 @@ -149,7 +149,7 @@
   5.113      int *rtest, n = 2;
   5.114      do {
   5.115          n *= 2;
   5.116 -        UCX_TEST_ASSERT(n < 65536, "test corrupt - no movement for realloc")
   5.117 +        UCX_TEST_ASSERT(n < 65536, "test corrupt - no movement for realloc");
   5.118          rtest = ucx_mempool_realloc(pool, test, n*sizeof(intptr_t));
   5.119      } while (rtest == test);
   5.120      test = rtest;
   5.121 @@ -161,7 +161,7 @@
   5.122      
   5.123      ucx_mempool_free(pool);
   5.124      
   5.125 -    UCX_TEST_ASSERT(*cb == 42, "destructor not called")
   5.126 +    UCX_TEST_ASSERT(*cb == 42, "destructor not called");
   5.127      
   5.128      UCX_TEST_END
   5.129      if (cb != NULL) free(cb);

mercurial