]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Clarify reporting of data errors in tests.
authorTim Kientzle <kientzle@gmail.com>
Sun, 21 Mar 2010 06:27:17 +0000 (02:27 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sun, 21 Mar 2010 06:27:17 +0000 (02:27 -0400)
SVN-Revision: 2044

libarchive/test/test_read_format_isojoliet_bz2.c
libarchive/test/test_read_format_isojoliet_rr.c

index 18af3b88b28b0dc499775bc0b4554e2ed24ad885..7575c1934418b3be29ba2ae3a51d927247438e19 100644 (file)
@@ -107,7 +107,7 @@ DEFINE_TEST(test_read_format_isojoliet_bz2)
        assertEqualInt(0, archive_read_data_block(a, &p, &size, &offset));
        assertEqualInt(6, (int)size);
        assertEqualInt(0, offset);
-       assertEqualInt(0, memcmp(p, "hello\n", 6));
+       assertEqualMem(p, "hello\n", 6);
 
        /* Second name for the same regular file (this happens to be
         * returned second, so does get marked as a hardlink). */
index ea798d74f4ae9b55f3c61144a40cce23177e6559..9f55751aad644a43079454012a51dcda4db0bb58 100644 (file)
@@ -110,7 +110,7 @@ DEFINE_TEST(test_read_format_isojoliet_rr)
        assertEqualInt(0, archive_read_data_block(a, &p, &size, &offset));
        assertEqualInt(6, (int)size);
        assertEqualInt(0, offset);
-       assertEqualInt(0, memcmp(p, "hello\n", 6));
+       assertEqualMem(p, "hello\n", 6);
        assertEqualInt(86401, archive_entry_mtime(ae));
        /* mkisofs records their access time. */
        /*assertEqualInt(86401, archive_entry_atime(ae));*/