<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/fold, branch master</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=master</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2026-04-15T14:08:27Z</updated>
<entry>
<title>tests: avoid $SHELL -c "ulimit ..." pattern</title>
<updated>2026-04-15T14:08:27Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-15T14:08:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d58ea74d01f649664e82499884206231b8a82f6e'/>
<id>urn:sha1:d58ea74d01f649664e82499884206231b8a82f6e</id>
<content type='text'>
As described in commit v9.10-283-g5cb0cca3b
avoid using ulimit with $SHELL -c, and explict
invocation of the shell like that can require lots of memory,
often due to loading the locale archive.
* tests/basenc/bounded-memory.sh: Avoid $SHELL -c with ulimit.
* tests/cut/bounded-memory.sh: Likewise.
* tests/expand/bounded-memory.sh Likewise.
* tests/pr/bounded-memory.sh Likewise.
* tests/unexpand/bounded-memory.sh Likewise.
* tests/fold/fold-zero-width.sh: Bring the ulimit bound
down to the standard 6M over the determined limit.
</content>
</entry>
<entry>
<title>tests: fix false failure under some shells</title>
<updated>2026-04-12T10:41:31Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-11T21:33:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5cb0cca3b863e7aa5978f725c227c323a4a0d58f'/>
<id>urn:sha1:5cb0cca3b863e7aa5978f725c227c323a4a0d58f</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>maint: tests: refactor uses of bad_unicode()</title>
<updated>2026-03-04T17:57:54Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-03-04T17:57:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e24372e6d0f10ab54c3c387930246c5e66f40a34'/>
<id>urn:sha1:e24372e6d0f10ab54c3c387930246c5e66f40a34</id>
<content type='text'>
* init.cfg: Use 0xFF rather than 0xC3 everywhere.
* tests/fold/fold-characters.sh: Reuse bad_unicode().
* tests/tac/tac-locale.sh: Likewise.
</content>
</entry>
<entry>
<title>fold: fix output truncation with 0xFF bytes in input</title>
<updated>2026-03-04T17:45:57Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-03-04T16:56:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a85e9182b1d173c26205dada54133cd9e9174fc1'/>
<id>urn:sha1:a85e9182b1d173c26205dada54133cd9e9174fc1</id>
<content type='text'>
On signed char platforms, 0xFF was converted to -1
which matches MBBUF_EOF, causing fold to stop processing.

* NEWS: Mention the bug fix.
* gl/lib/mbbuf.h: Avoid sign extension on signed char platforms.
* tests/fold/fold-characters.sh: Adjust test case.
Reported at https://src.fedoraproject.org/rpms/coreutils/pull-request/20
</content>
</entry>
<entry>
<title>maint: tests: avoid ENOSPC specific handling</title>
<updated>2026-02-18T18:31:49Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-02-17T21:59:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=448a7dc072072a56eddb770491504a813a31486f'/>
<id>urn:sha1:448a7dc072072a56eddb770491504a813a31486f</id>
<content type='text'>
* tests/csplit/csplit-io-err.sh: Adjust determination of ENOSPC.
* tests/csplit/split-io-err.sh: Likewise.
* tests/fold/fold-zero-width.sh: Verify full ENOSPC message.
* tests/tac/tac-continue.sh: Likewise.
* tests/misc/io-errors.sh: Likewise.
* tests/misc/write-errors.sh: Likewise.
</content>
</entry>
<entry>
<title>tests: fold: check that all files are processed</title>
<updated>2026-02-06T23:46:44Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-02-06T08:43:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=94f13435b3fa28f1fea214e1b99f274a7f386d99'/>
<id>urn:sha1:94f13435b3fa28f1fea214e1b99f274a7f386d99</id>
<content type='text'>
* tests/fold/multiple-files.sh: New file.
* tests/local.mk (all_tests): Add the test.
</content>
</entry>
<entry>
<title>tests: mktemp: add tests for invalid Unicode options</title>
<updated>2026-01-07T02:52:48Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-01-05T00:51:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1f1bce27d7e096c7bcf196e1af3b0b13472ac252'/>
<id>urn:sha1:1f1bce27d7e096c7bcf196e1af3b0b13472ac252</id>
<content type='text'>
* init.cfg (bad_unicode): New function, copied from
tests/fold/fold-characters.sh with the NUL removed.
* tests/fold/fold-characters.sh (bad_unicode): Rename to
bad_unicode_with_nul. Reformat long line.
* tests/mktemp/bad-unicode.sh: New test.
* tests/local.mk (all_tests): Add the new test.
</content>
</entry>
<entry>
<title>maint: run 'make update-copyright'</title>
<updated>2026-01-01T18:56:16Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-01-01T18:56:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=73d3a49f45770c45808e4fdab35ae4fe248a3cd9'/>
<id>urn:sha1:73d3a49f45770c45808e4fdab35ae4fe248a3cd9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: avoid false failure on older Linux kernels</title>
<updated>2025-09-21T15:37:26Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-09-21T15:37:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8a1f4344639795a783c0ccd39ba8f02282d833ce'/>
<id>urn:sha1:8a1f4344639795a783c0ccd39ba8f02282d833ce</id>
<content type='text'>
* tests/fold/fold-zero-width.sh: Check the shell was able to create
the redirection file, as intermittently on CentOS 5,6,7 this wasn't
the case, with the shell giving an xmalloc failure due to the ulimit.
Reported by William Bader and Bruno Haible.
</content>
</entry>
<entry>
<title>tests: fold: avoid false failures on Solaris 10</title>
<updated>2025-09-20T21:12:58Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-09-20T16:10:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=70eb250fd734d50d45314094b84a174c1ac07dec'/>
<id>urn:sha1:70eb250fd734d50d45314094b84a174c1ac07dec</id>
<content type='text'>
* tests/fold/fold-characters.sh: Ensure we have independent verification
of the width of characters before testing based on those widths.
* tests/fold/fold-zero-width.sh: Likewise.
* tests/fold/fold.pl: Only compare the exit status,
as the error message can be translated.
</content>
</entry>
</feed>
