summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregor herrmann <gregoa@debian.org>2024-04-03 18:29:31 +0200
committergregor herrmann <gregoa@debian.org>2024-04-03 18:29:31 +0200
commitf5c41df3a77a66aaaff6fdd72bf8fbc1eabc2719 (patch)
treedafed2ae6a45f6e07f621a3c3b81b0ab528594af
parenta5201b2c2d2f1a4c4882274425b670925fba8433 (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-xt/cz-03zlib-v1.t4
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 ;
}