File: tests-version-skew.patch

package info (click to toggle)
libio-compress-perl 2.214-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,100 kB
  • sloc: perl: 18,699; sh: 26; makefile: 16; xml: 1
file content (23 lines) | stat: -rw-r--r-- 801 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: avoid version skew in t/cz-03zlib-v1.t
 Avoid version comparison between build time and runtime version, as they
 might be different, and assume we always have >= 1.12.2 (true since
 bookworm).
Origin: vendor
Bug-Debian: https://bugs.debian.org/1026753
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2024-02-22

--- a/t/cz-03zlib-v1.t
+++ b/t/cz-03zlib-v1.t
@@ -704,7 +704,9 @@
 
     # 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)
+    # Debian: 1) avoid version skew compile time version and runtime version,
+    # and 2) we have >= 1.12.2 since bookworm
+    if (1)
     {
         cmp_ok $status, '==', Z_STREAM_END ;
     }