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
+4 -4
View File
@@ -7,18 +7,18 @@ int main(void) {
const char ptr[] = "Hello World!";
if (fwrite(ptr, 0, 17, f)) {
return -1;
return EXIT_FAILURE;
}
if (fwrite(ptr, 7, 0, f)) {
return -1;
return EXIT_FAILURE;
}
if (fwrite(ptr, 0, 0, f)) {
return -1;
return EXIT_FAILURE;
}
fwrite(ptr, sizeof(ptr), 1, f);
fclose(f);
return 0;
return EXIT_SUCCESS;
}