aboutsummaryrefslogtreecommitdiff
path: root/tests/create_compress_files.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/create_compress_files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/create_compress_files.c b/tests/create_compress_files.c
index 44367d8f..bd5b4ef4 100644
--- a/tests/create_compress_files.c
+++ b/tests/create_compress_files.c
@@ -79,7 +79,8 @@ static void
write_abc(FILE *file)
{
for (size_t i = 0; i < 12345; ++i)
- fwrite("abc\n", 4, 1, file);
+ if (fwrite("abc\n", 4, 1, file) != 1)
+ exit(1);
}