From e4682ce0c911bfdb607eecdb7bddf6498d9a34d0 Mon Sep 17 00:00:00 2001 From: dongyuzhen Date: Fri, 24 May 2024 11:10:01 +0800 Subject: [PATCH] fix test case failure --- fix-test-case-failure.patch | 32 ++++++++++++++++++++++++++++++++ perl-IO-Compress.spec | 9 ++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 fix-test-case-failure.patch diff --git a/fix-test-case-failure.patch b/fix-test-case-failure.patch new file mode 100644 index 0000000..d42b7bb --- /dev/null +++ b/fix-test-case-failure.patch @@ -0,0 +1,32 @@ +From bd25cda1ae716cda021f1a5936462ba4ed666b40 Mon Sep 17 00:00:00 2001 +From: dongyuzhen +Date: Fri, 24 May 2024 10:39:00 +0800 +Subject: [PATCH] fix test case failures + +--- + t/cz-03zlib-v1.t | 9 +-------- + 1 file changed, 1 insertion(+), 8 deletions(-) + +diff --git a/t/cz-03zlib-v1.t b/t/cz-03zlib-v1.t +index 73d7b89..3e5302e 100755 +--- a/t/cz-03zlib-v1.t ++++ b/t/cz-03zlib-v1.t +@@ -704,14 +704,7 @@ EOM + + # Z_STREAM_END returned by 1.12.2, Z_DATA_ERROR for older zlib + # always Z_STREAM_ENDin zlib_ng +- if (ZLIB_VERNUM >= ZLIB_1_2_12_0 || Compress::Raw::Zlib::is_zlibng) +- { +- cmp_ok $status, '==', Z_STREAM_END ; +- } +- else +- { +- cmp_ok $status, '==', Z_DATA_ERROR ; +- } ++ cmp_ok $status, '==', Z_STREAM_END ; + + ok $Z . $GOT eq $goodbye ; + } +-- +2.33.0 + diff --git a/perl-IO-Compress.spec b/perl-IO-Compress.spec index 523fdc4..9882782 100644 --- a/perl-IO-Compress.spec +++ b/perl-IO-Compress.spec @@ -7,11 +7,14 @@ Name: perl-IO-Compress Version: 2.201 -Release: 1 +Release: 2 Summary: Read and write compressed data License: GPL+ or Artistic URL: https://metacpan.org/release/IO-Compress Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz + +Patch0: fix-test-case-failure.patch + BuildArch: noarch # Module Build BuildRequires: coreutils findutils make perl-generators perl-interpreter @@ -69,6 +72,7 @@ Man pages and other related documents. %prep %setup -q -n IO-Compress-%{version} +%patch0 -p1 # Remove spurious exec permissions chmod -c -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm @@ -109,6 +113,9 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1 %{_mandir}/man3/IO::Uncompress::*.3* %changelog +* Fri May 24 2024 dongyuzhen - 2.201-2 +- fix test case failure + * Wed Nov 02 2022 dongyuzhen - 2.201-1 - upgrade version to 2.201 -- Gitee