From: Tim Kientzle Date: Tue, 5 May 2026 00:14:21 +0000 (-0700) Subject: Suppress spurious failures from old liblzma X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=800f7af66f8dec2fb1fec4afa2f2f65b8d128fbc;p=thirdparty%2Flibarchive.git Suppress spurious failures from old liblzma --- diff --git a/libarchive/test/test_read_format_7zip.c b/libarchive/test/test_read_format_7zip.c index a34531440..1a22f52af 100644 --- a/libarchive/test/test_read_format_7zip.c +++ b/libarchive/test/test_read_format_7zip.c @@ -1476,8 +1476,8 @@ test_riscv_filter(const char *refname) assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae)); assertEqualInt((AE_IFREG | 0775), archive_entry_mode(ae)); assertEqualString("hw-riscv64", archive_entry_pathname(ae)); - assertEqualInt(sizeof(buff), archive_entry_size(ae)); - assertEqualInt(sizeof(buff), archive_read_data(a, buff, sizeof(buff))); + assertEqualIntA(a, sizeof(buff), archive_entry_size(ae)); + assertEqualIntA(a, sizeof(buff), archive_read_data(a, buff, sizeof(buff))); computed_crc = bitcrc32(computed_crc, buff, sizeof(buff)); assertEqualInt(computed_crc, expected_crc); @@ -1500,6 +1500,8 @@ DEFINE_TEST(test_read_format_7zip_lzma2_riscv) if (ARCHIVE_OK != archive_read_support_filter_lzma(a)) { skipping("7zip:lzma decoding is not supported on this platform"); + } else if (!lzma_filter_decoder_is_supported(LZMA_FILTER_RISCV)) { + skipping("liblzma does not support RISC-V BCJ filter at runtime"); } else { test_riscv_filter("test_read_format_7zip_lzma2_riscv.7z"); }