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 } |