1.1 --- a/test/main.c Sat Feb 18 18:36:30 2012 +0100 1.2 +++ b/test/main.c Mon Feb 20 15:30:45 2012 +0100 1.3 @@ -64,7 +64,7 @@ 1.4 int main(int argc, char **argv) { 1.5 printf("UCX Tests\n---------\n"); 1.6 1.7 - printf("\nUcxTestSuite Tests (1 failure is intended!)\n"); 1.8 + printf("\nUcxTestSuite tests (1 failure is intended!)\n"); 1.9 UcxTestSuite* suite = ucx_test_suite_new(); 1.10 ucx_test_register(suite, testTestSuitePositive); 1.11 ucx_test_register(suite, testTestSuiteNegative); 1.12 @@ -72,6 +72,7 @@ 1.13 if (suite->failure == 1 && suite->success == 1) { 1.14 ucx_test_suite_free(suite); 1.15 1.16 + printf("\nLibrary function tests\n"); 1.17 suite = ucx_test_suite_new(); 1.18 /* UcxList Tests */ 1.19 ucx_test_register(suite, test_ucx_list_append); 1.20 @@ -96,11 +97,14 @@ 1.21 ucx_test_register(suite, test_ucx_dlist_remove); 1.22 ucx_test_register(suite, test_ucx_dlist_clone); 1.23 1.24 - /* TODO: replace these tests with "real" tests */ 1.25 - printf("\nUcxMemPool Tests\n"); 1.26 - if(mpool_tests()) { 1.27 - fprintf(stderr, "mpool_tests failed\n"); 1.28 - } 1.29 + /* UcxMemPool Tests */ 1.30 + ucx_test_register(suite, test_ucx_mempool_new); 1.31 + ucx_test_register(suite, test_ucx_mempool_malloc); 1.32 + ucx_test_register(suite, test_ucx_mempool_malloc_with_chcap); 1.33 + ucx_test_register(suite, test_ucx_mempool_calloc); 1.34 + ucx_test_register(suite, test_ucx_mempool_set_destr); 1.35 + ucx_test_register(suite, test_ucx_mempool_reg_destr); 1.36 + ucx_test_register(suite, test_ucx_mempool_realloc); 1.37 1.38 printf("\nUcxMap Tests\n"); 1.39 if(map_tests()) {