tests: Portability fixes, replaced 0/1/-1 return codes with macros

This commit is contained in:
Tibor Nagy
2019-02-20 20:20:07 +01:00
parent ff874c87d7
commit c19cc8b731
76 changed files with 178 additions and 133 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ int int_cmp(const void* a, const void* b) {
size_t i = 0; \
for (; i < len; ++i) printf("%d,", arr[i]); \
printf("] expected %p but got %p\n", (void*) expect, res); \
return 1; \
return EXIT_FAILURE; \
} \
} while (0);
@@ -53,5 +53,5 @@ int main(void) {
BSEARCH_TEST_INT(x, big, 7, NULL);
printf("PASS bsearch\n");
return 0;
return EXIT_SUCCESS;
}