test/mpool_tests.c

changeset 134
4d320dc3a7af
parent 131
fc3af16818a3
child 177
11ad03783baf
--- a/test/mpool_tests.c	Fri Aug 09 10:24:02 2013 +0200
+++ b/test/mpool_tests.c	Fri Aug 09 11:32:10 2013 +0200
@@ -30,7 +30,7 @@
 
 #include "mpool_tests.h"
 
-UCX_TEST_IMPLEMENT(test_ucx_mempool_new) {
+UCX_TEST(test_ucx_mempool_new) {
     UcxMempool *pool = ucx_mempool_new(16);
     UCX_TEST_BEGIN
     UCX_TEST_ASSERT(pool->size == 16, "wrong size");
@@ -40,7 +40,7 @@
     ucx_mempool_destroy(pool);
 }
 
-UCX_TEST_IMPLEMENT(test_ucx_mempool_malloc) {
+UCX_TEST(test_ucx_mempool_malloc) {
     
     UcxMempool *pool = ucx_mempool_new(1);
     UCX_TEST_BEGIN
@@ -59,7 +59,7 @@
     ucx_mempool_destroy(pool);
 }
 
-UCX_TEST_IMPLEMENT(test_ucx_mempool_malloc_with_chcap) {
+UCX_TEST(test_ucx_mempool_malloc_with_chcap) {
     
     UcxMempool *pool = ucx_mempool_new(1);
     UCX_TEST_BEGIN
@@ -79,7 +79,7 @@
     ucx_mempool_destroy(pool);
 }
 
-UCX_TEST_IMPLEMENT(test_ucx_mempool_calloc) {
+UCX_TEST(test_ucx_mempool_calloc) {
     
     UcxMempool *pool = ucx_mempool_new(1);
     UCX_TEST_BEGIN
@@ -93,7 +93,7 @@
     ucx_mempool_destroy(pool);
 }
 
-UCX_TEST_IMPLEMENT(test_ucx_mempool_free) {
+UCX_TEST(test_ucx_mempool_free) {
     UcxMempool *pool = ucx_mempool_new(16);
     void *mem1;
     void *mem2;
@@ -128,7 +128,7 @@
     *cb = 42;
 }
 
-UCX_TEST_IMPLEMENT(test_ucx_mempool_set_destr) {
+UCX_TEST(test_ucx_mempool_set_destr) {
     
     intptr_t *cb = (intptr_t*) malloc(sizeof(intptr_t));
     UCX_TEST_BEGIN
@@ -157,7 +157,7 @@
 }
 
 
-UCX_TEST_IMPLEMENT(test_ucx_mempool_reg_destr) {
+UCX_TEST(test_ucx_mempool_reg_destr) {
     
     intptr_t *test = (intptr_t*) calloc(2, sizeof(intptr_t));
     intptr_t *cb = (intptr_t*) malloc(sizeof(intptr_t));
@@ -184,7 +184,7 @@
     if (cb != NULL) free(cb);
 }
 
-UCX_TEST_IMPLEMENT(test_ucx_mempool_realloc) {
+UCX_TEST(test_ucx_mempool_realloc) {
 
     intptr_t *cb = (intptr_t*) malloc(sizeof(intptr_t));
     UCX_TEST_BEGIN

mercurial