aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/test/test_read_format_zip_high_compression.c
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2016-10-24 13:51:45 +0000
committerMartin Matuska <mm@FreeBSD.org>2016-10-24 13:51:45 +0000
commit930550a55e28eda815a869274e1f152d8a408d44 (patch)
tree4c3fc82bb1a35c39549c9110014f40ad3699a51b /libarchive/test/test_read_format_zip_high_compression.c
parent62583e4b79b69cebe941750624cd5730c50916fd (diff)
downloadsrc-930550a55e28eda815a869274e1f152d8a408d44.tar.gz
src-930550a55e28eda815a869274e1f152d8a408d44.zip
Update vendor/libarchive to git 629358182b04d7de2316bbd29708c58ddf797fd2vendor/libarchive/3.2.2
Libarchive 3.2.2
Notes
Notes: svn path=/vendor/libarchive/dist/; revision=307859 svn path=/vendor/libarchive/3.2.2/; revision=307860; tag=vendor/libarchive/3.2.2
Diffstat (limited to 'libarchive/test/test_read_format_zip_high_compression.c')
-rw-r--r--libarchive/test/test_read_format_zip_high_compression.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libarchive/test/test_read_format_zip_high_compression.c b/libarchive/test/test_read_format_zip_high_compression.c
index 6c8aa8eee1b2..42faed378f6d 100644
--- a/libarchive/test/test_read_format_zip_high_compression.c
+++ b/libarchive/test/test_read_format_zip_high_compression.c
@@ -50,6 +50,11 @@ DEFINE_TEST(test_read_format_zip_high_compression)
size_t s;
int64_t o;
+ if (archive_zlib_version() == NULL) {
+ skipping("Zip compression test requires zlib");
+ return;
+ }
+
extract_reference_file(refname);
p = slurpfile(&archive_size, refname);
@@ -82,6 +87,11 @@ DEFINE_TEST(test_read_format_zip_high_compression2)
char *body, *body_read, *buff;
int n;
+ if (archive_zlib_version() == NULL) {
+ skipping("Zip compression test requires zlib");
+ return;
+ }
+
assert((body = malloc(body_size)) != NULL);
assert((body_read = malloc(body_size)) != NULL);
assert((buff = malloc(buff_size)) != NULL);