tests: More work on error handling

This commit is contained in:
Tibor Nagy
2019-02-24 00:46:26 +01:00
parent 0c539d6e4e
commit 2d027f0771
14 changed files with 126 additions and 52 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
int main(void) {
FILE *fp = popen("ls -1 example_dir", "r");
ERROR_IF(fopen, fp, == NULL);
ERROR_IF(popen, fp, == NULL);
char path[256] = { 0 };
while (fgets(path, 256, fp) != NULL) {