test/main.c

changeset 56
76caac0da4a0
parent 55
180bc6b18fec
child 58
733f22fca61a
equal deleted inserted replaced
55:180bc6b18fec 56:76caac0da4a0
37 #include "list_tests.h" 37 #include "list_tests.h"
38 #include "dlist_tests.h" 38 #include "dlist_tests.h"
39 #include "string_tests.h" 39 #include "string_tests.h"
40 #include "mpool_tests.h" 40 #include "mpool_tests.h"
41 #include "map_tests.h" 41 #include "map_tests.h"
42 #include "memstream_tests.h"
42 43
43 int cmp_string(void* o1, void* o2, void* data) { 44 int cmp_string(void* o1, void* o2, void* data) {
44 return strcmp((char*)o1, (char*)o2); 45 return strcmp((char*)o1, (char*)o2);
45 } 46 }
46 47
160 /* sstring Tests */ 161 /* sstring Tests */
161 ucx_test_register(suite, test_sstr); 162 ucx_test_register(suite, test_sstr);
162 ucx_test_register(suite, test_sstr_len_cat); 163 ucx_test_register(suite, test_sstr_len_cat);
163 ucx_test_register(suite, test_sstrsplit); 164 ucx_test_register(suite, test_sstrsplit);
164 165
166 /* UcxMemstream Tests */
167 ucx_test_register(suite, test_ucx_memseektell);
168 ucx_test_register(suite, test_ucx_memputc);
169 ucx_test_register(suite, test_ucx_memgetc);
170 ucx_test_register(suite, test_ucx_memwrite);
171 ucx_test_register(suite, test_ucx_memread);
172 ucx_test_register(suite, test_ucx_memprintf);
173 ucx_test_register(suite, test_ucx_memscanf);
174
165 ucx_test_run(suite, stdout); 175 ucx_test_run(suite, stdout);
166 fflush(stdout); 176 fflush(stdout);
167 ucx_test_suite_free(suite); 177 ucx_test_suite_free(suite);
168 178
169 return EXIT_SUCCESS; 179 return EXIT_SUCCESS;

mercurial