Skip to content

Commit 4b279ba

Browse files
authored
zip: Fix test failure (libarchive#2304)
Fix `test_write_format_zip_stream` failure when `HAVE_ZLIB_H` is not defined. If `libz` is present, `zip` archives would be compressed by default, which requires `zip_version=20`. Otherwise, the archive is not compressed and only requires `zip_version=10`. I'm building libarchive on a machine not intended for developing, so basicly there's no optional dependencies like `libz` available, guess that's why nobody else has reported this issue.
1 parent 57d7792 commit 4b279ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libarchive/test/test_write_format_zip_stream.c

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ DEFINE_TEST(test_write_format_zip_stream)
8282
const char *file_name = "file";
8383

8484
#ifndef HAVE_ZLIB_H
85+
zip_version = 10;
8586
zip_compression = 0;
8687
#endif
8788

0 commit comments

Comments
 (0)