File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,16 @@ test_non_gzip = conjoin
180
180
181
181
, ioProperty $ withSampleData " not-gzip" $ \ hnd -> do
182
182
let decomp = decompressIO rawFormat defaultDecompressParams
183
- assertDecompressError hnd (assertDataFormatError " invalid code lengths set" ) decomp
183
+ checkError err = disjoin
184
+ -- The majority of platforms throw this:
185
+ [ assertDataFormatError " invalid code lengths set" err
186
+ -- But on z15+ mainframes zlib employs CPU instruction DFLTCC,
187
+ -- which returns error code with the same meaning.
188
+ -- See http://publibfp.dhe.ibm.com/epubs/pdf/a227832c.pdf, page 26-37
189
+ -- and https://github.com/haskell/zlib/issues/46
190
+ , assertDataFormatError " Operation-Ending-Supplemental Code is 0x27" err
191
+ ]
192
+ assertDecompressError hnd checkError decomp
184
193
185
194
, ioProperty $ withSampleData " not-gzip" $ \ hnd -> do
186
195
let decomp = decompressIO gzipOrZlibFormat defaultDecompressParams
You can’t perform that action at this time.
0 commit comments