Chromium Code Reviews| Index: tests/create_compress_files.c |
| =================================================================== |
| --- tests/create_compress_files.c (revision 87706) |
| +++ tests/create_compress_files.c (working copy) |
| @@ -79,7 +79,8 @@ |
| 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); |
| } |