]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: fix false failure under some shells master
authorPádraig Brady <P@draigBrady.com>
Sat, 11 Apr 2026 21:33:50 +0000 (22:33 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 12 Apr 2026 10:41:31 +0000 (11:41 +0100)
commit5cb0cca3b863e7aa5978f725c227c323a4a0d58f
treed2b82a182db8820f41fec862c2b70e567117416b
parent5dec936897d9b0c37c9b87b9630e3795d4386458
tests: fix false failure under some shells

Verified with:
  make -j4 PREFERABLY_POSIX_SHELL=/bin/ksh SUBDIRS=. check

* tests/fold/fold-zero-width.sh: Don't timeout $SHELL -c ...
as the ulimit induces a failure in the subshell depending
on the order of the allocations it does.  The main issue is
disparity between the probed ulimit and that needed by $SHELL -c.
Such subshells load the often very large locale archive, thus
if there are any allocations done after the now too low ulimit is set,
then the $SHELL command fails. Note we timeout fold rather than
the whole pipeline so any 124 exit status is propagated.
tests/fold/fold-zero-width.sh