summaryrefslogtreecommitdiffstats
path: root/libarchive/test/test_read_format_cab.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/test/test_read_format_cab.c')
-rw-r--r--libarchive/test/test_read_format_cab.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/libarchive/test/test_read_format_cab.c b/libarchive/test/test_read_format_cab.c
index 004d6e8..e09d46d 100644
--- a/libarchive/test/test_read_format_cab.c
+++ b/libarchive/test/test_read_format_cab.c
@@ -260,7 +260,7 @@ verify(const char *refname, enum comp_type comp)
}
/* Verify archive format. */
- assertEqualIntA(a, ARCHIVE_COMPRESSION_NONE, archive_compression(a));
+ assertEqualIntA(a, ARCHIVE_FILTER_NONE, archive_filter_code(a, 0));
assertEqualIntA(a, ARCHIVE_FORMAT_CAB, archive_format(a));
/* Close the archive. */
@@ -280,6 +280,11 @@ verify2(const char *refname, enum comp_type comp)
char buff[128];
char zero[128];
+ if (comp == MSZIP && !libz_enabled) {
+ skipping("Skipping CAB format(MSZIP) check for %s",
+ refname);
+ return;
+ }
memset(zero, 0, sizeof(zero));
extract_reference_file(refname);
assert((a = archive_read_new()) != NULL);
@@ -316,7 +321,7 @@ verify2(const char *refname, enum comp_type comp)
}
/* Verify archive format. */
- assertEqualIntA(a, ARCHIVE_COMPRESSION_NONE, archive_compression(a));
+ assertEqualIntA(a, ARCHIVE_FILTER_NONE, archive_filter_code(a, 0));
assertEqualIntA(a, ARCHIVE_FORMAT_CAB, archive_format(a));
/* Close the archive. */
@@ -363,7 +368,7 @@ verify3(const char *refname, enum comp_type comp)
}
/* Verify archive format. */
- assertEqualIntA(a, ARCHIVE_COMPRESSION_NONE, archive_compression(a));
+ assertEqualIntA(a, ARCHIVE_FILTER_NONE, archive_filter_code(a, 0));
assertEqualIntA(a, ARCHIVE_FORMAT_CAB, archive_format(a));
/* Close the archive. */
OpenPOWER on IntegriCloud