diff options
author | gregor herrmann <gregoa@debian.org> | 2024-02-22 18:19:55 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2024-02-22 18:19:55 +0100 |
commit | 1d7c1fa64d6235e92ea8703d08b4d834820f5b34 (patch) | |
tree | 9a24703c9215a340f5ed0f307fe773514ec3b9a1 | |
parent | 4294d7f3ede0b5b6e82a445a22af66732d09bda6 (diff) |
avoid version skew in t/cz-03zlib-v1.t
Origin: vendor
Bug-Debian: https://bugs.debian.org/1026753
Forwarded: not-needed
Last-Update: 2024-02-22
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).
Gbp-Pq: Name tests-version-skew.patch
-rwxr-xr-x | t/cz-03zlib-v1.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/cz-03zlib-v1.t b/t/cz-03zlib-v1.t index 4bfba00..9d9c0c1 100755 --- a/t/cz-03zlib-v1.t +++ b/t/cz-03zlib-v1.t @@ -704,7 +704,9 @@ 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) + # 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 ; } |