perl-IO-Compress/fix-test-case-failure.patch
2024-05-28 10:27:47 +08:00

38 lines
1.4 KiB
Diff

From bd25cda1ae716cda021f1a5936462ba4ed666b40 Mon Sep 17 00:00:00 2001
From: dongyuzhen <dongyuzhen@h-partners.com>
Date: Fri, 24 May 2024 10:39:00 +0800
Subject: [PATCH] fix test case failure
The patching of zlib in openEuler with upstream bug fixes aligns its functionality with newer versions of zlib. However, the version number of zlib within openEuler remains unchanged, indicating the older version. Consequently, the test cases for perl-IO-Compress, which rely on the zlib version number to determine expected outcomes, will fail. To address this, perl-IO-Compress must be updated to accommodate the changes in zlib and remove the versioning-based checks from its test suite.
This bugfix commit for zlib in openEuler resulted in a change in its function behavior:
https://gitee.com/src-openeuler/zlib/pulls/46
---
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