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
@@ -8,7 +8,7 @@ int main(void) {
char* path = realpath("stdlib/realpath.c", NULL);
if (!path) {
perror("realpath");
return -1;
return EXIT_FAILURE;
}
puts(path);
@@ -21,7 +21,7 @@ int main(void) {
if (!path) {
perror("realpath");
free(path);
return -1;
return EXIT_FAILURE;
}
puts(path);