]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
If the returned blocksize is wrong, you won't get anything useful out
authorTim Kientzle <kientzle@gmail.com>
Mon, 15 Feb 2010 04:51:41 +0000 (23:51 -0500)
committerTim Kientzle <kientzle@gmail.com>
Mon, 15 Feb 2010 04:51:41 +0000 (23:51 -0500)
of the archive's error info.

SVN-Revision: 1902

libarchive/test/test_write_format_tar.c

index fb40c6522be5a3eeadc053a3112a6880843b9cd4..57fee78fcdfb6dc442659ebedea7f6ded40b7eaa 100644 (file)
@@ -48,12 +48,12 @@ DEFINE_TEST(test_write_format_tar)
                    archive_write_set_bytes_per_block(a, (int)blocksize));
                assertEqualIntA(a, ARCHIVE_OK,
                    archive_write_set_bytes_in_last_block(a, (int)blocksize));
-               assertEqualIntA(a, blocksize,
+               assertEqualInt(blocksize,
                    archive_write_get_bytes_in_last_block(a));
                assertEqualIntA(a, ARCHIVE_OK,
                    archive_write_open_memory(a, buff, sizeof(buff), &used));
-               assertEqualIntA(a, blocksize,
-                   (size_t)archive_write_get_bytes_in_last_block(a));
+               assertEqualInt(blocksize,
+                   archive_write_get_bytes_in_last_block(a));
 
                /*
                 * Write a file to it.