test/main.c

changeset 252
6342cbbd1922
parent 251
fae240d633fc
child 253
e19825a1430a
equal deleted inserted replaced
251:fae240d633fc 252:6342cbbd1922
230 ucx_test_register(suite, test_ucx_avl_find); 230 ucx_test_register(suite, test_ucx_avl_find);
231 ucx_test_register(suite, test_ucx_avl_traverse); 231 ucx_test_register(suite, test_ucx_avl_traverse);
232 232
233 ucx_test_run(suite, stdout); 233 ucx_test_run(suite, stdout);
234 fflush(stdout); 234 fflush(stdout);
235
236 int exit_code = suite->failure > 0 ? EXIT_FAILURE: EXIT_SUCCESS;
237
235 ucx_test_suite_free(suite); 238 ucx_test_suite_free(suite);
236 239
237 return EXIT_SUCCESS; 240 return exit_code;
238 } else { 241 } else {
239 ucx_test_suite_free(suite); 242 ucx_test_suite_free(suite);
240 return EXIT_FAILURE; 243 return EXIT_FAILURE;
241 } 244 }
242 } 245 }

mercurial