From: Tim Kientzle Date: Wed, 17 Feb 2010 05:49:30 +0000 (-0500) Subject: Add a couple of assertions to verify archive_position_compressed() X-Git-Tag: v3.0.0a~1257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3bcb4e5394c7c474b150f822cb49a602bba4c79;p=thirdparty%2Flibarchive.git Add a couple of assertions to verify archive_position_compressed() and archive_position_uncompressed(). SVN-Revision: 1903 --- diff --git a/libarchive/test/test_write_format_ar.c b/libarchive/test/test_write_format_ar.c index 2115c4d4d..6bdbfb2ae 100644 --- a/libarchive/test/test_write_format_ar.c +++ b/libarchive/test/test_write_format_ar.c @@ -98,6 +98,9 @@ DEFINE_TEST(test_write_format_ar) archive_entry_free(ae); assertEqualIntA(a, ARCHIVE_OK, archive_write_close(a)); + assertEqualInt(archive_position_compressed(a), + archive_position_uncompressed(a)); + assertEqualInt(used, archive_position_uncompressed(a)); assertEqualInt(ARCHIVE_OK, archive_write_free(a)); /*