]> git.ipfire.org Git - thirdparty/git.git/commit
t0021: skip EXPENSIVE test that is broken without SIZE_T_IS_64BIT
authorPatrick Steinhardt <ps@pks.im>
Mon, 6 Jul 2026 06:23:57 +0000 (08:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2026 14:21:57 +0000 (07:21 -0700)
commit9769449fc8c9dc508a3cfd4e0af6d182fc6cf619
tree3d9b7a5754127956d912178618d2d26f28595c25
parentfc1bac6b57a99cefe2c0febbe57bd19bd3e03ab9
t0021: skip EXPENSIVE test that is broken without SIZE_T_IS_64BIT

One of the tests in t0021 writes a 2GB file and then roundtrips it
through the clean/sumdge filters. This test is broken on 32 bit
platforms because they typically don't handle files larger then
`SSIZE_MAX` well at all.

While our CI has a "linux32" job that should in theory hit this issue,
we never noticed it because we didn't use to run EXPENSIVE tests until
7a094d68a2 (ci: run expensive tests on push builds to integration
branches, 2026-05-08). And after that commit, the test does not fail but
instead hangs completely.

Ideally, we'd of course properly detect this situation and then test for
it. In practice, this turns out to be hard as the test failure are not
reliable as they often (but not always) run into ENOMEM errors.

Instead, skip the test altogether.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0021-conversion.sh