TEST_COMPARE (found[i], true);
free (line);
- fclose (in);
+ xfclose (in);
}
TEST_COMPARE (interpreter_found, true);
TEST_COMPARE (libc_found, true);
- fclose (out);
+ xfclose (out);
}
support_capture_subprocess_free (&pldd);
TEST_COMPARE_BLOB (lineptr, 4, "abc\0", 4);
TEST_VERIFY (getdelim (&lineptr, &linelen, '\0', memstream) != -1);
TEST_COMPARE_BLOB (lineptr, 5, "d\nef\0", 5);
- fclose (memstream);
+ xfclose (memstream);
free (lineptr);
return 0;
DIAG_POP_NEEDS_COMMENT;
+ xfclose (f);
+
return 0;
}
DIAG_POP_NEEDS_COMMENT;
+ xfclose (f);
+
return 0;
}
TEST_VERIFY_EXIT (fgetc (f) == 0xd9);
TEST_VERIFY_EXIT (fgetc (f) == 0xab);
+ xfclose (f);
+
return 0;
}
TEST_COMPARE(tests[i].mnt_freq, ret->mnt_freq);
TEST_COMPARE(tests[i].mnt_passno, ret->mnt_passno);
- fclose (fp);
+ xfclose (fp);
}
return 0;
input. */
lost |= (fscanf (f, "%lf", &d) != 0);
c = fgetc (f);
+ xfclose (f);
lost |= c != 'e';
puts (lost ? "Test FAILED!" : "Test succeeded.");
return lost;
int res = bp != buf;
bp = fgets_unlocked (buf, sizeof (buf), fp);
printf ("fgets_unlocked: %s\n", bp == buf ? "OK" : "ERROR");
+ xfclose (fp);
res |= bp != buf;
return res;
}