]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fwrite is marked w/ check return, thus doing make check results in build failures...
authorBrian Harring <ferringb@gmail.com>
Sun, 4 Apr 2010 05:43:17 +0000 (01:43 -0400)
committerBrian Harring <ferringb@gmail.com>
Sun, 4 Apr 2010 05:43:17 +0000 (01:43 -0400)
SVN-Revision: 2059

libarchive/test/test_fuzz.c
tar/test/test_option_T_upper.c

index 088bb9d95901db9cad5c1ffd0dfd796e495c7824..bb38fcf4e782d772bc3c25372830bfbb0f114538 100644 (file)
@@ -143,7 +143,7 @@ DEFINE_TEST(test_fuzz)
                         * If we crash, that file will be useful. */
                        f = fopen("after.test.failure.send.this.file."
                            "to.libarchive.maintainers.with.system.details", "wb");
-                       fwrite(image, 1, (size_t)size, f);
+                       assertEqualInt((size_t)size, fwrite(image, 1, (size_t)size, f));
                        fclose(f);
 
                        assert((a = archive_read_new()) != NULL);
index 99554f0299a04c2a3677c99bad9aa24b5ada0049..94cd8cca073370d112c5cc36393909d138b88b62 100644 (file)
@@ -79,12 +79,12 @@ DEFINE_TEST(test_option_T_upper)
                return;
        /* Use null-terminated names. */
        fprintf(f, "d1/d2/f3");
-       fwrite("\0", 1, 1, f);
+       assertEqualInt(1, fwrite("\0", 1, 1, f));
        fprintf(f, "d1/d2/f5");
-       fwrite("\0", 1, 1, f);
+       assertEqualInt(1, fwrite("\0", 1, 1, f));
        if (gnarlyFilesSupported) {
                fprintf(f, "d1/d2/f\x0a");
-               fwrite("\0", 1, 1, f);
+               assertEqualInt(1, fwrite("\0", 1, 1, f));
        }
        fclose(f);