diff options
| author | Jun Aruga <jaruga@ruby-lang.org> | 2023-09-25 11:55:17 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-09-25 17:59:04 +0000 |
| commit | 295862e22ad88b3c7204df18b9b6a8560a1896f9 (patch) | |
| tree | 29beb7cd7220066ddc530ba5dd057d6537b4b837 /test/ruby | |
| parent | ca2594535dd314086b5599fcd39cd80f863d80f4 (diff) | |
[ruby/zlib] Workaround: Fix test failures on Ubuntu jammy s390x.
This commit fixes the test failures on the zlib in Ubuntu jammy s390x.
According to the <https://packages.ubuntu.com/jammy-updates/zlib1g> -
`zlib_1.2.11.dfsg-2ubuntu9.2.debian.tar.xz`,
the zlib deb package is applying the patch 410.patch (madler/zlib#410), and
configured by `./configure --dfltcc` on Ubuntu jammy s390x. The `--dfltcc`
is to enable the deflate algorithm in hardware.
It produces a different (but still valid) compressed byte stream, and causes
the test failures in ruby/zlib. As a workaround, set the environment variable
`DFLTCC=0` disabling the implementation in zlib on s390x to the failing tests.
Note we need to test in a child Ruby process with `assert_separately` to test
on the `DFLTCC=0` set by the parent Ruby process.
https://github.com/ruby/zlib/commit/9f3b9c470c
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
