Subject: | IO::Compress test suite fails with Compress::Raw::Zlib 2.047 and zlib < 1.2.4 |
The IO::Compress test suite (t/111const-deflate.t) enumerates
DEFLATE_CONSTANTS and tests for the presence of each constant; with zlib
< 1.2.4 the Z_TREES constant is undefined, leading to:
# Failed test (t/111const-deflate.t at line 49)
# got: 'Your vendor has not defined Zlib macro Z_TREES, used at
(eval 103) line 1
# '
# expected: ''
# Failed test (t/111const-deflate.t at line 49)
# got: 'Your vendor has not defined Zlib macro Z_TREES, used at
(eval 179) line 1
# '
# expected: ''
# Failed test (t/111const-deflate.t at line 49)
# got: 'Your vendor has not defined Zlib macro Z_TREES, used at
(eval 255) line 1
# '
# expected: ''
# Failed test (t/111const-deflate.t at line 49)
# got: 'Your vendor has not defined Zlib macro Z_TREES, used at
(eval 331) line 1
# '
# expected: ''
# Failed test (t/111const-deflate.t at line 49)
# got: 'Your vendor has not defined Zlib macro Z_TREES, used at
(eval 407) line 1
# '
# expected: ''
# Looks like you failed 5 tests of 355.
t/111const-deflate.t ............
1..355
ok 1 - IO::Compress::Adapter::Deflate - no import
ok 2 - create package P2
ok 3 - has ZLIB_VERSION
ok 4 - has ZLIB_VERNUM
ok 5 - has OS_CODE
ok 6 - has MAX_MEM_LEVEL
ok 7 - has MAX_WBITS
ok 8 - has Z_ASCII
ok 9 - has Z_BEST_COMPRESSION
ok 10 - has Z_BEST_SPEED
ok 11 - has Z_BINARY
ok 12 - has Z_BLOCK
ok 13 - has Z_BUF_ERROR
ok 14 - has Z_DATA_ERROR
ok 15 - has Z_DEFAULT_COMPRESSION
ok 16 - has Z_DEFAULT_STRATEGY
ok 17 - has Z_DEFLATED
ok 18 - has Z_ERRNO
ok 19 - has Z_FILTERED
ok 20 - has Z_FIXED
ok 21 - has Z_FINISH
ok 22 - has Z_FULL_FLUSH
ok 23 - has Z_HUFFMAN_ONLY
ok 24 - has Z_MEM_ERROR
ok 25 - has Z_NEED_DICT
ok 26 - has Z_NO_COMPRESSION
ok 27 - has Z_NO_FLUSH
ok 28 - has Z_NULL
ok 29 - has Z_OK
ok 30 - has Z_PARTIAL_FLUSH
ok 31 - has Z_RLE
ok 32 - has Z_STREAM_END
ok 33 - has Z_STREAM_ERROR
ok 34 - has Z_SYNC_FLUSH
not ok 35 - has Z_TREES
ok 36 - has Z_UNKNOWN
ok 37 - has Z_VERSION_ERROR
ok 38 - has WANT_GZIP
ok 39 - has WANT_GZIP_OR_ZLIB
ok 40 - IO::Compress::RawDeflate - no import
ok 41 - create package P3
ok 42 - has ZLIB_VERSION
ok 43 - has ZLIB_VERNUM
ok 44 - has OS_CODE
ok 45 - has MAX_MEM_LEVEL
ok 46 - has MAX_WBITS
ok 47 - has Z_ASCII
ok 48 - has Z_BEST_COMPRESSION
ok 49 - has Z_BEST_SPEED
ok 50 - has Z_BINARY
ok 51 - has Z_BLOCK
ok 52 - has Z_BUF_ERROR
ok 53 - has Z_DATA_ERROR
ok 54 - has Z_DEFAULT_COMPRESSION
ok 55 - has Z_DEFAULT_STRATEGY
ok 56 - has Z_DEFLATED
ok 57 - has Z_ERRNO
ok 58 - has Z_FILTERED
ok 59 - has Z_FIXED
ok 60 - has Z_FINISH
ok 61 - has Z_FULL_FLUSH
ok 62 - has Z_HUFFMAN_ONLY
ok 63 - has Z_MEM_ERROR
ok 64 - has Z_NEED_DICT
ok 65 - has Z_NO_COMPRESSION
ok 66 - has Z_NO_FLUSH
ok 67 - has Z_NULL
ok 68 - has Z_OK
ok 69 - has Z_PARTIAL_FLUSH
ok 70 - has Z_RLE
ok 71 - has Z_STREAM_END
ok 72 - has Z_STREAM_ERROR
ok 73 - has Z_SYNC_FLUSH
not ok 74 - has Z_TREES
ok 75 - has Z_UNKNOWN
ok 76 - has Z_VERSION_ERROR
ok 77 - has WANT_GZIP
ok 78 - has WANT_GZIP_OR_ZLIB
ok 79 - IO::Compress::Deflate - no import
ok 80 - create package P4
ok 81 - has ZLIB_VERSION
ok 82 - has ZLIB_VERNUM
ok 83 - has OS_CODE
ok 84 - has MAX_MEM_LEVEL
ok 85 - has MAX_WBITS
ok 86 - has Z_ASCII
ok 87 - has Z_BEST_COMPRESSION
ok 88 - has Z_BEST_SPEED
ok 89 - has Z_BINARY
ok 90 - has Z_BLOCK
ok 91 - has Z_BUF_ERROR
ok 92 - has Z_DATA_ERROR
ok 93 - has Z_DEFAULT_COMPRESSION
ok 94 - has Z_DEFAULT_STRATEGY
ok 95 - has Z_DEFLATED
ok 96 - has Z_ERRNO
ok 97 - has Z_FILTERED
ok 98 - has Z_FIXED
ok 99 - has Z_FINISH
ok 100 - has Z_FULL_FLUSH
ok 101 - has Z_HUFFMAN_ONLY
ok 102 - has Z_MEM_ERROR
ok 103 - has Z_NEED_DICT
ok 104 - has Z_NO_COMPRESSION
ok 105 - has Z_NO_FLUSH
ok 106 - has Z_NULL
ok 107 - has Z_OK
ok 108 - has Z_PARTIAL_FLUSH
ok 109 - has Z_RLE
ok 110 - has Z_STREAM_END
ok 111 - has Z_STREAM_ERROR
ok 112 - has Z_SYNC_FLUSH
not ok 113 - has Z_TREES
ok 114 - has Z_UNKNOWN
ok 115 - has Z_VERSION_ERROR
ok 116 - has WANT_GZIP
ok 117 - has WANT_GZIP_OR_ZLIB
ok 118 - IO::Compress::Gzip - no import
ok 119 - create package P5
ok 120 - has ZLIB_VERSION
ok 121 - has ZLIB_VERNUM
ok 122 - has OS_CODE
ok 123 - has MAX_MEM_LEVEL
ok 124 - has MAX_WBITS
ok 125 - has Z_ASCII
ok 126 - has Z_BEST_COMPRESSION
ok 127 - has Z_BEST_SPEED
ok 128 - has Z_BINARY
ok 129 - has Z_BLOCK
ok 130 - has Z_BUF_ERROR
ok 131 - has Z_DATA_ERROR
ok 132 - has Z_DEFAULT_COMPRESSION
ok 133 - has Z_DEFAULT_STRATEGY
ok 134 - has Z_DEFLATED
ok 135 - has Z_ERRNO
ok 136 - has Z_FILTERED
ok 137 - has Z_FIXED
ok 138 - has Z_FINISH
ok 139 - has Z_FULL_FLUSH
ok 140 - has Z_HUFFMAN_ONLY
ok 141 - has Z_MEM_ERROR
ok 142 - has Z_NEED_DICT
ok 143 - has Z_NO_COMPRESSION
ok 144 - has Z_NO_FLUSH
ok 145 - has Z_NULL
ok 146 - has Z_OK
ok 147 - has Z_PARTIAL_FLUSH
ok 148 - has Z_RLE
ok 149 - has Z_STREAM_END
ok 150 - has Z_STREAM_ERROR
ok 151 - has Z_SYNC_FLUSH
not ok 152 - has Z_TREES
ok 153 - has Z_UNKNOWN
ok 154 - has Z_VERSION_ERROR
ok 155 - has WANT_GZIP
ok 156 - has WANT_GZIP_OR_ZLIB
ok 157 - IO::Compress::Zip - no import
ok 158 - create package P6
ok 159 - has ZLIB_VERSION
ok 160 - has ZLIB_VERNUM
ok 161 - has OS_CODE
ok 162 - has MAX_MEM_LEVEL
ok 163 - has MAX_WBITS
ok 164 - has Z_ASCII
ok 165 - has Z_BEST_COMPRESSION
ok 166 - has Z_BEST_SPEED
ok 167 - has Z_BINARY
ok 168 - has Z_BLOCK
ok 169 - has Z_BUF_ERROR
ok 170 - has Z_DATA_ERROR
ok 171 - has Z_DEFAULT_COMPRESSION
ok 172 - has Z_DEFAULT_STRATEGY
ok 173 - has Z_DEFLATED
ok 174 - has Z_ERRNO
ok 175 - has Z_FILTERED
ok 176 - has Z_FIXED
ok 177 - has Z_FINISH
ok 178 - has Z_FULL_FLUSH
ok 179 - has Z_HUFFMAN_ONLY
ok 180 - has Z_MEM_ERROR
ok 181 - has Z_NEED_DICT
ok 182 - has Z_NO_COMPRESSION
ok 183 - has Z_NO_FLUSH
ok 184 - has Z_NULL
ok 185 - has Z_OK
ok 186 - has Z_PARTIAL_FLUSH
ok 187 - has Z_RLE
ok 188 - has Z_STREAM_END
ok 189 - has Z_STREAM_ERROR
ok 190 - has Z_SYNC_FLUSH
not ok 191 - has Z_TREES
ok 192 - has Z_UNKNOWN
ok 193 - has Z_VERSION_ERROR
ok 194 - has WANT_GZIP
ok 195 - has WANT_GZIP_OR_ZLIB
ok 196 - IO::Compress::Adapter::Deflate - import :level
ok 197 - create package P7
ok 198 - has Z_NO_COMPRESSION
ok 199 - has Z_BEST_SPEED
ok 200 - has Z_BEST_COMPRESSION
ok 201 - has Z_DEFAULT_COMPRESSION
ok 202 - IO::Compress::Adapter::Deflate - import :flush
ok 203 - create package P8
ok 204 - has Z_NO_FLUSH
ok 205 - has Z_PARTIAL_FLUSH
ok 206 - has Z_SYNC_FLUSH
ok 207 - has Z_FULL_FLUSH
ok 208 - has Z_FINISH
ok 209 - has Z_BLOCK
ok 210 - IO::Compress::Adapter::Deflate - import :strategy
ok 211 - create package P9
ok 212 - has Z_FILTERED
ok 213 - has Z_HUFFMAN_ONLY
ok 214 - has Z_RLE
ok 215 - has Z_FIXED
ok 216 - has Z_DEFAULT_STRATEGY
ok 217 - IO::Compress::Adapter::Deflate - import :status
ok 218 - create package P10
ok 219 - has Z_OK
ok 220 - has Z_STREAM_END
ok 221 - has Z_NEED_DICT
ok 222 - has Z_ERRNO
ok 223 - has Z_STREAM_ERROR
ok 224 - has Z_DATA_ERROR
ok 225 - has Z_MEM_ERROR
ok 226 - has Z_BUF_ERROR
ok 227 - has Z_VERSION_ERROR
ok 228 - IO::Compress::RawDeflate - import :level
ok 229 - create package P11
ok 230 - has Z_NO_COMPRESSION
ok 231 - has Z_BEST_SPEED
ok 232 - has Z_BEST_COMPRESSION
ok 233 - has Z_DEFAULT_COMPRESSION
ok 234 - IO::Compress::RawDeflate - import :flush
ok 235 - create package P12
ok 236 - has Z_NO_FLUSH
ok 237 - has Z_PARTIAL_FLUSH
ok 238 - has Z_SYNC_FLUSH
ok 239 - has Z_FULL_FLUSH
ok 240 - has Z_FINISH
ok 241 - has Z_BLOCK
ok 242 - IO::Compress::RawDeflate - import :strategy
ok 243 - create package P13
ok 244 - has Z_FILTERED
ok 245 - has Z_HUFFMAN_ONLY
ok 246 - has Z_RLE
ok 247 - has Z_FIXED
ok 248 - has Z_DEFAULT_STRATEGY
ok 249 - IO::Compress::RawDeflate - import :status
ok 250 - create package P14
ok 251 - has Z_OK
ok 252 - has Z_STREAM_END
ok 253 - has Z_NEED_DICT
ok 254 - has Z_ERRNO
ok 255 - has Z_STREAM_ERROR
ok 256 - has Z_DATA_ERROR
ok 257 - has Z_MEM_ERROR
ok 258 - has Z_BUF_ERROR
ok 259 - has Z_VERSION_ERROR
ok 260 - IO::Compress::Deflate - import :level
ok 261 - create package P15
ok 262 - has Z_NO_COMPRESSION
ok 263 - has Z_BEST_SPEED
ok 264 - has Z_BEST_COMPRESSION
ok 265 - has Z_DEFAULT_COMPRESSION
ok 266 - IO::Compress::Deflate - import :flush
ok 267 - create package P16
ok 268 - has Z_NO_FLUSH
ok 269 - has Z_PARTIAL_FLUSH
ok 270 - has Z_SYNC_FLUSH
ok 271 - has Z_FULL_FLUSH
ok 272 - has Z_FINISH
ok 273 - has Z_BLOCK
ok 274 - IO::Compress::Deflate - import :strategy
ok 275 - create package P17
ok 276 - has Z_FILTERED
ok 277 - has Z_HUFFMAN_ONLY
ok 278 - has Z_RLE
ok 279 - has Z_FIXED
ok 280 - has Z_DEFAULT_STRATEGY
ok 281 - IO::Compress::Deflate - import :status
ok 282 - create package P18
ok 283 - has Z_OK
ok 284 - has Z_STREAM_END
ok 285 - has Z_NEED_DICT
ok 286 - has Z_ERRNO
ok 287 - has Z_STREAM_ERROR
ok 288 - has Z_DATA_ERROR
ok 289 - has Z_MEM_ERROR
ok 290 - has Z_BUF_ERROR
ok 291 - has Z_VERSION_ERROR
ok 292 - IO::Compress::Gzip - import :level
ok 293 - create package P19
ok 294 - has Z_NO_COMPRESSION
ok 295 - has Z_BEST_SPEED
ok 296 - has Z_BEST_COMPRESSION
ok 297 - has Z_DEFAULT_COMPRESSION
ok 298 - IO::Compress::Gzip - import :flush
ok 299 - create package P20
ok 300 - has Z_NO_FLUSH
ok 301 - has Z_PARTIAL_FLUSH
ok 302 - has Z_SYNC_FLUSH
ok 303 - has Z_FULL_FLUSH
ok 304 - has Z_FINISH
ok 305 - has Z_BLOCK
ok 306 - IO::Compress::Gzip - import :strategy
ok 307 - create package P21
ok 308 - has Z_FILTERED
ok 309 - has Z_HUFFMAN_ONLY
ok 310 - has Z_RLE
ok 311 - has Z_FIXED
ok 312 - has Z_DEFAULT_STRATEGY
ok 313 - IO::Compress::Gzip - import :status
ok 314 - create package P22
ok 315 - has Z_OK
ok 316 - has Z_STREAM_END
ok 317 - has Z_NEED_DICT
ok 318 - has Z_ERRNO
ok 319 - has Z_STREAM_ERROR
ok 320 - has Z_DATA_ERROR
ok 321 - has Z_MEM_ERROR
ok 322 - has Z_BUF_ERROR
ok 323 - has Z_VERSION_ERROR
ok 324 - IO::Compress::Zip - import :level
ok 325 - create package P23
ok 326 - has Z_NO_COMPRESSION
ok 327 - has Z_BEST_SPEED
ok 328 - has Z_BEST_COMPRESSION
ok 329 - has Z_DEFAULT_COMPRESSION
ok 330 - IO::Compress::Zip - import :flush
ok 331 - create package P24
ok 332 - has Z_NO_FLUSH
ok 333 - has Z_PARTIAL_FLUSH
ok 334 - has Z_SYNC_FLUSH
ok 335 - has Z_FULL_FLUSH
ok 336 - has Z_FINISH
ok 337 - has Z_BLOCK
ok 338 - IO::Compress::Zip - import :strategy
ok 339 - create package P25
ok 340 - has Z_FILTERED
ok 341 - has Z_HUFFMAN_ONLY
ok 342 - has Z_RLE
ok 343 - has Z_FIXED
ok 344 - has Z_DEFAULT_STRATEGY
ok 345 - IO::Compress::Zip - import :status
ok 346 - create package P26
ok 347 - has Z_OK
ok 348 - has Z_STREAM_END
ok 349 - has Z_NEED_DICT
ok 350 - has Z_ERRNO
ok 351 - has Z_STREAM_ERROR
ok 352 - has Z_DATA_ERROR
ok 353 - has Z_MEM_ERROR
ok 354 - has Z_BUF_ERROR
ok 355 - has Z_VERSION_ERROR
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/355 subtests