diff options
Diffstat (limited to 'tests/slurp.c')
-rw-r--r-- | tests/slurp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/slurp.c b/tests/slurp.c index 6b6a02e..1ae2280 100644 --- a/tests/slurp.c +++ b/tests/slurp.c @@ -1,4 +1,4 @@ -#include "../src/config.h" +#include <s.h> #include <errno.h> #include <stdio.h> @@ -7,8 +7,6 @@ #include "slurp.h" -static const size_t -NULL_TERMINATOR = sizeof((char)'\0'); int slurp_for_tests(const char *const filename, char **out) { @@ -19,7 +17,8 @@ slurp_for_tests(const char *const filename, char **out) { file = fopen(filename, "r"); if (file == NULL) { - perror("fopen(filename, \"r\")"); + // Comment to prevent clobbering in test output + // perror("fopen(filename, \"r\")"); goto out; } |