<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc/write-errors.sh, branch v9.8</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.8</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2025-09-17T20:37:35Z</updated>
<entry>
<title>tests: write-errors.sh: avoid portability issue with dash</title>
<updated>2025-09-17T20:37:35Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-09-17T20:33:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5662192f391fd9c54c80aa992aba355aca10760e'/>
<id>urn:sha1:5662192f391fd9c54c80aa992aba355aca10760e</id>
<content type='text'>
* tests/misc/write-errors.sh: Use printf rather than echo
since the echo builtin in dash will interpret backslashes.
* tests/misc/read-errors.sh: Likewise for consistency.
</content>
</entry>
<entry>
<title>tests: fix issues with fold-characters.sh test</title>
<updated>2025-09-17T14:32:47Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-09-17T13:17:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=78502174a9cf88cfcdff70f355f30db77ebbd630'/>
<id>urn:sha1:78502174a9cf88cfcdff70f355f30db77ebbd630</id>
<content type='text'>
This was noticed with:

  trap '' PIPE &amp;&amp;  # 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).
</content>
</entry>
<entry>
<title>fold: exit promptly upon write errors</title>
<updated>2025-09-16T13:10:31Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-09-16T12:07:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=10459ca7ed15456a6dbfebc7d718c8d713fbfe70'/>
<id>urn:sha1:10459ca7ed15456a6dbfebc7d718c8d713fbfe70</id>
<content type='text'>
* NEWS: Mention the improvement.
* src/fold.c (fold_file): Check for write errors
after each buffer read from stdin.
* tests/misc/write-errors.sh: Add test cases.
</content>
</entry>
<entry>
<title>tests: misc/write-errors.sh: increase memory limit</title>
<updated>2025-01-15T22:50:05Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-15T22:47:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0bd149403d4378d3a049f3cc34780ac8d71551f7'/>
<id>urn:sha1:0bd149403d4378d3a049f3cc34780ac8d71551f7</id>
<content type='text'>
* tests/head/head-c.sh: Use a larger VM limit to avoid
mem allocation failures, which were seen on CheriBSD.
</content>
</entry>
<entry>
<title>tests: avoid slow ulimit -v behavior</title>
<updated>2025-01-15T17:07:13Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-15T15:13:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=61d4935802e706bd32387bf052b89286c754e2ae'/>
<id>urn:sha1:61d4935802e706bd32387bf052b89286c754e2ae</id>
<content type='text'>
* init.cfg (ulimit_supported_): skip_ if the ulimit -v
takes too long, which was seen with bash 5.2 on Solaris 11,
where fork() returned EAGAIN under memory constraints,
and bash retried for about 16 seconds.
(get_min_ulimit_v_): Break early if skipped.
* tests/misc/write-errors.sh: Be more conservative and
skip on failure to determine min ulimit.
</content>
</entry>
<entry>
<title>tests: make misc/write-errors.sh immune to default signal disposition</title>
<updated>2025-01-12T12:44:37Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-12T12:44:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e6a1f5a4b0b235a6dd9acf91ab1ae9289fb2ebe6'/>
<id>urn:sha1:e6a1f5a4b0b235a6dd9acf91ab1ae9289fb2ebe6</id>
<content type='text'>
* tests/misc/write-errors.sh: Reset SIGPIPE to the default (terminate)
disposition, so that the test doesn't erroneously fail due to an
ignored SIGPIPE in the test environment.
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2025-01-01T09:33:08Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-01T09:14:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=28b176085f04a6227d7fadd28a129b5cb02dfbf5'/>
<id>urn:sha1:28b176085f04a6227d7fadd28a129b5cb02dfbf5</id>
<content type='text'>
Update to latest gnulib with new copyright year.
Run "make update-copyright" and then...

* gnulib: Update included in this commit as copyright years
are the only change from the previous gnulib commit.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
<entry>
<title>tests: limit mem usage on potentially expensive test</title>
<updated>2024-08-04T09:58:31Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-08-03T13:13:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1bb31793c29e9bac15df531d1e8ad13078be00c8'/>
<id>urn:sha1:1bb31793c29e9bac15df531d1e8ad13078be00c8</id>
<content type='text'>
* tests/misc/write-errors.sh: Limit mem usage if possible,
as some implementations may use unbounded memory for
the tests cases used here.
</content>
</entry>
<entry>
<title>tests: ensure utils support writing to a closed pipe</title>
<updated>2024-08-04T09:58:31Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-08-03T12:37:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=440b40eecea2e48335247e4670b770ee28eba5e0'/>
<id>urn:sha1:440b40eecea2e48335247e4670b770ee28eba5e0</id>
<content type='text'>
* tests/misc/write-errors.sh: A closed pipe is a common scenario,
and should not induce an error.  The general case is discussed at:
https://www.pixelbeat.org/programming/sigpipe_handling.html
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2024-01-01T13:27:23Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-01-01T13:22:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a966dcdb69e2f49f2587e1b7d4ade7efcff29f40'/>
<id>urn:sha1:a966dcdb69e2f49f2587e1b7d4ade7efcff29f40</id>
<content type='text'>
Update to latest gnulib with new copyright year.
Run "make update-copyright" and then...

* gnulib: Update included in this commit as copyright years
are the only change from the previous gnulib commit.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Manually update copyright year,
until we fully sync with gnulib at a later stage.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
</feed>
