tests/ucxtest.c

changeset 1328
2cf66dee40b8
parent 1318
12fa1d37fe48
equal deleted inserted replaced
1327:ed75dc1db503 1328:2cf66dee40b8
57 if (!cx_testing_allocator_verify(&testing_allocator)) break; 57 if (!cx_testing_allocator_verify(&testing_allocator)) break;
58 #define execute_test_suites(...) unsigned success = 0, failure = 0; CxTestSuite* test_suites[] = {__VA_ARGS__}; \ 58 #define execute_test_suites(...) unsigned success = 0, failure = 0; CxTestSuite* test_suites[] = {__VA_ARGS__}; \
59 for (size_t i = 0; i < cx_nmemb(test_suites) ; i++) {run_tests(test_suites[i]);} (void)0 59 for (size_t i = 0; i < cx_nmemb(test_suites) ; i++) {run_tests(test_suites[i]);} (void)0
60 #define free_test_suites for (size_t i = 0 ; i < cx_nmemb(test_suites) ; i++) {cx_test_suite_free(test_suites[i]);} (void)0 60 #define free_test_suites for (size_t i = 0 ; i < cx_nmemb(test_suites) ; i++) {cx_test_suite_free(test_suites[i]);} (void)0
61 61
62 static int verify_testing_allocator() { 62 static int verify_testing_allocator(void) {
63 printf("Verify Testing Allocator\n"); 63 printf("Verify Testing Allocator\n");
64 CxTestSuite *suite_ta = cx_test_suite_testing_allocator(); 64 CxTestSuite *suite_ta = cx_test_suite_testing_allocator();
65 int result = suite_ta->failure > 0; 65 int result = suite_ta->failure > 0;
66 cx_test_suite_free(suite_ta); 66 cx_test_suite_free(suite_ta);
67 return result; 67 return result;

mercurial