summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/test/test_compat_bzip2.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2009-03-07 00:25:33 +0000
committerkientzle <kientzle@FreeBSD.org>2009-03-07 00:25:33 +0000
commit86476a54f9bd352811dbacd9857efd23edeb25e3 (patch)
tree944520e8706c5f2380abb7a2f5dd55ca9d455bca /lib/libarchive/test/test_compat_bzip2.c
parentd4b227a5faae1597130a598fc7382df6374cda3f (diff)
downloadFreeBSD-src-86476a54f9bd352811dbacd9857efd23edeb25e3.zip
FreeBSD-src-86476a54f9bd352811dbacd9857efd23edeb25e3.tar.gz
Merge r659 from libarchive.googlecode.com: Correctly report "none"
as the compression name when no other read filter bid. Add some assertions to various tests to verify that read filters are properly setting the textual name as well as the compression code.
Diffstat (limited to 'lib/libarchive/test/test_compat_bzip2.c')
-rw-r--r--lib/libarchive/test/test_compat_bzip2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libarchive/test/test_compat_bzip2.c b/lib/libarchive/test/test_compat_bzip2.c
index 143d923..f9d4029 100644
--- a/lib/libarchive/test/test_compat_bzip2.c
+++ b/lib/libarchive/test/test_compat_bzip2.c
@@ -69,6 +69,7 @@ compat_bzip2(const char *name)
/* Verify that the format detection worked. */
assertEqualInt(archive_compression(a), ARCHIVE_COMPRESSION_BZIP2);
+ assertEqualString(archive_compression_name(a), "bzip2");
assertEqualInt(archive_format(a), ARCHIVE_FORMAT_TAR_USTAR);
assertEqualInt(ARCHIVE_OK, archive_read_close(a));
OpenPOWER on IntegriCloud