]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: fix issues with fold-characters.sh test
authorPádraig Brady <P@draigBrady.com>
Wed, 17 Sep 2025 13:17:39 +0000 (14:17 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 17 Sep 2025 14:32:47 +0000 (15:32 +0100)
commit78502174a9cf88cfcdff70f355f30db77ebbd630
tree8a01132317b39e776906a97a15524ac91d0957dc
parent42ac231533e89cd26e6e01ebe545a1407e2f8cb8
tests: fix issues with fold-characters.sh test

This was noticed with:

  trap '' PIPE &&  # Ignore SIGPIPE
  make check TESTS=tests/fold/fold-characters.sh SUBDIRS=.

* tests/fold/fold-characters.sh: Move memory limit test to ...
* tests/misc/write-errors.sh: ... which avoids "write error"
messages on stderr due to the ignored SIGPIPE.  It also protects
the fold invocation with a timeout(1) so that fold implementations
that don't exit promptly upon write error don't hang the test suite
(Like we would have done before commit v9.7-311-gc95c7ee76).
tests/fold/fold-characters.sh
tests/misc/write-errors.sh