--- a/test/mpool_tests.c Wed Jan 04 14:51:54 2012 +0100 +++ b/test/mpool_tests.c Wed Jan 11 12:19:48 2012 +0100 @@ -25,6 +25,8 @@ } int mpool_tests() { + int r = 0; + printf(" Test ucx_mempool_new\n"); UcxMempool *pool = ucx_mempool_new(16); @@ -55,6 +57,7 @@ char *str = ucx_mempool_calloc(pool, 1, 3); if(str[0] != 0 || str[1] != 0 || str[2] != 0) { fprintf(stderr, "ucx_mempool_calloc failed\n"); + r--; } str[0] = 'O'; str[1] = 'K'; @@ -65,6 +68,7 @@ str[3] = 0; if(strcmp(str, "OK!") != 0) { fprintf(stderr, "Test ucx_mempool_realloc failed!\n"); + r--; } printf(" Test ucx_mempool_reg_destr\n"); @@ -75,5 +79,5 @@ //ucx_mempool_free(pool); - return 0; + return r; }