diff options
| author | Pádraig Brady <P@draigBrady.com> | 2025-09-17 14:17:39 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2025-09-17 15:32:47 +0100 |
| commit | 78502174a9cf88cfcdff70f355f30db77ebbd630 (patch) | |
| tree | 8a01132317b39e776906a97a15524ac91d0957dc /tests/misc/write-errors.sh | |
| parent | doc: remove older ChangeLog items (diff) | |
| download | coreutils-78502174a9cf88cfcdff70f355f30db77ebbd630.tar.gz coreutils-78502174a9cf88cfcdff70f355f30db77ebbd630.zip | |
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).
Diffstat (limited to 'tests/misc/write-errors.sh')
| -rwxr-xr-x | tests/misc/write-errors.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/misc/write-errors.sh b/tests/misc/write-errors.sh index 5bc381f5f..34bed5dfc 100755 --- a/tests/misc/write-errors.sh +++ b/tests/misc/write-errors.sh @@ -37,6 +37,7 @@ factor --version; yes 1 | factor fold /dev/zero fold -b /dev/zero fold -c /dev/zero +fold --version; yes | tr -d '\\n' | fold head -z -n-1 /dev/zero join -a 1 -z /dev/zero /dev/null # TODO: nl --version; yes | nl |
