!19 Fix test case failure caused by zlib
From: @hugel Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
c70265fee2
48
Fix-test-case-failure-caused-by-zlib.patch
Normal file
48
Fix-test-case-failure-caused-by-zlib.patch
Normal file
@ -0,0 +1,48 @@
|
||||
From 2b0aa66459bd10a10ecbe25ab4e7ec8de073aebf Mon Sep 17 00:00:00 2001
|
||||
From: gengqihu <gengqihu2@h-partners.com>
|
||||
Date: Fri, 24 May 2024 09:37:44 +0800
|
||||
Subject: [PATCH] Fix test case failure caused by zlib
|
||||
|
||||
---
|
||||
t/02zlib.t | 18 ++----------------
|
||||
1 file changed, 2 insertion(+), 16deletions(-)
|
||||
|
||||
diff --git a/t/02zlib.t b/t/02zlib.t
|
||||
index 292538b..f52d170 100644
|
||||
--- a/t/02zlib.t
|
||||
+++ b/t/02zlib.t
|
||||
@@ -489,14 +489,7 @@ SKIP:
|
||||
|
||||
# Z_STREAM_END returned by 1.12.2, Z_DATA_ERROR for older zlib
|
||||
# ZLIB_NG has the fix for all versions
|
||||
- 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 ;
|
||||
|
||||
is $GOT, $goodbye ;
|
||||
|
||||
@@ -523,14 +516,7 @@ SKIP:
|
||||
$GOT = '';
|
||||
$status = $k->inflate($rest, $GOT);
|
||||
# Z_STREAM_END returned by 1.12.2, Z_DATA_ERROR for older zlib
|
||||
- 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 ;
|
||||
|
||||
is $GOT, $goodbye ;
|
||||
}
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Name: perl-Compress-Raw-Zlib
|
||||
Epoch: 1
|
||||
Version: 2.202
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Provides a Perl interface to the zlib compression library
|
||||
# source code in tarball have different license
|
||||
# not used
|
||||
@ -11,6 +11,8 @@ License: GPL-1.0-or-later and zlib
|
||||
URL: https://metacpan.org/release/Compress-Raw-Zlib
|
||||
Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/Compress-Raw-Zlib-%{version}.tar.gz
|
||||
|
||||
Patch0: Fix-test-case-failure-caused-by-zlib.patch
|
||||
|
||||
BuildRequires: gcc perl(ExtUtils::MakeMaker) perl-interpreter perl-generators zlib-devel
|
||||
#for test
|
||||
BuildRequires: perl(Test::Pod) >= 1.00 perl-devel
|
||||
@ -51,6 +53,9 @@ make test TEST_VERBOSE=1 COMPRESS_ZLIB_RUN_ALL=1
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri May 24 2024 gengqihu <gengqihu2@h-partners.com> - 1:2.202-2
|
||||
- Fix test case failure caused by zlib
|
||||
|
||||
* Tue Oct 18 2022 renhongxun <renhongxun@h-partners.com> - 1:2.202-1
|
||||
- upgrade version to 2.202
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user