/* Extracting with liblzma */
if (ARCHIVE_OK != archive_read_support_filter_xz(a)) {
- skipping("7zip:lzma decoding is not supported on this platform");
+ assertEqualInt(ARCHIVE_OK, archive_read_free(a));
+ skipping("7zip:lzma decoding is not supported on this "
+ "platform");
} else {
test_symname();
test_extract_all_files("test_read_format_7zip_copy_2.7z");
/* Extracting with liblzma */
if (ARCHIVE_OK != archive_read_support_filter_xz(a)) {
- skipping("7zip:lzma decoding is not supported on this platform");
+ assertEqualInt(ARCHIVE_OK, archive_read_free(a));
+ skipping("7zip:lzma decoding is not supported on this "
+ "platform");
} else {
test_plain_header("test_read_format_7zip_lzma1.7z");
test_extract_all_files("test_read_format_7zip_lzma1_2.7z");
/* Extracting with liblzma */
if (ARCHIVE_OK != archive_read_support_filter_xz(a)) {
- skipping("7zip:lzma decoding is not supported on this platform");
+ assertEqualInt(ARCHIVE_OK, archive_read_free(a));
+ skipping("7zip:lzma decoding is not supported on this "
+ "platform");
} else {
test_plain_header("test_read_format_7zip_lzma2.7z");
test_bcj("test_read_format_7zip_bcj_lzma2.7z");
extract_reference_file(refname);
assert((a = archive_read_new()) != NULL);
+ if (ARCHIVE_OK != archive_read_support_filter_xz(a)) {
+ assertEqualInt(ARCHIVE_OK, archive_read_free(a));
+ skipping("7zip:lzma decoding is not supported on this "
+ "platform");
+ }
assertEqualIntA(a, ARCHIVE_OK, archive_read_support_filter_all(a));
assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_all(a));
assertEqualIntA(a, ARCHIVE_OK,