summaryrefslogtreecommitdiffstats
path: root/libarchive/test/test_compat_mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/test/test_compat_mac.c')
-rw-r--r--libarchive/test/test_compat_mac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/test/test_compat_mac.c b/libarchive/test/test_compat_mac.c
index 3cad9f3..c7e8525 100644
--- a/libarchive/test/test_compat_mac.c
+++ b/libarchive/test/test_compat_mac.c
@@ -127,7 +127,7 @@ test_compat_mac_1(void)
assertEqualIntA(a, ARCHIVE_EOF, archive_read_next_header(a, &ae));
/* Verify that the format detection worked. */
- assertEqualInt(archive_compression(a), ARCHIVE_COMPRESSION_COMPRESS);
+ assertEqualInt(archive_filter_code(a, 0), ARCHIVE_FILTER_COMPRESS);
assertEqualInt(archive_format(a), ARCHIVE_FORMAT_TAR_GNUTAR);
assertEqualInt(ARCHIVE_OK, archive_read_close(a));
@@ -197,7 +197,7 @@ test_compat_mac_2(void)
assertEqualIntA(a, ARCHIVE_EOF, archive_read_next_header(a, &ae));
/* Verify that the format detection worked. */
- assertEqualInt(archive_compression(a), ARCHIVE_COMPRESSION_COMPRESS);
+ assertEqualInt(archive_filter_code(a, 0), ARCHIVE_FILTER_COMPRESS);
assertEqualInt(archive_format(a), ARCHIVE_FORMAT_TAR_USTAR);
assertEqualInt(ARCHIVE_OK, archive_read_close(a));
OpenPOWER on IntegriCloud