<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc, branch master</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://www.git.shady.money/coreutils/atom?h=master</id>
<link rel='self' href='https://www.git.shady.money/coreutils/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/'/>
<updated>2026-05-02T21:23:11Z</updated>
<entry>
<title>tests: all: ensure closed stdin is handled appropriately</title>
<updated>2026-05-02T21:23:11Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-05-02T18:44:04Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=3f650f692406a3ea94e8b9b6356e5d76cb232a8a'/>
<id>urn:sha1:3f650f692406a3ea94e8b9b6356e5d76cb232a8a</id>
<content type='text'>
* tests/misc/close-stdin.sh: New file.
* tests/local.mk (all_tests): Add the new test.
</content>
</entry>
<entry>
<title>sum,cksum: consistently emit detailed write errors</title>
<updated>2026-05-01T00:59:38Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-05-01T00:59:38Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=2de1a28bcf64b5e443c8884d875eb97103132aa1'/>
<id>urn:sha1:2de1a28bcf64b5e443c8884d875eb97103132aa1</id>
<content type='text'>
Previously the string from strerror would only be printed for some
algorithms:

    $ cksum -a sha2 -l 256 /dev/null &gt; /dev/full
    cksum: write error: No space left on device
    $ cksum -a sysv /dev/null &gt; /dev/full
    cksum: write error

This patch fixes it so that the error information is always printed:

    $ ./src/cksum -a sha2 -l 256 /dev/null &gt; /dev/full
    cksum: write error: No space left on device
    $ ./src/cksum -a sysv /dev/null &gt; /dev/full
    cksum: write error: No space left on device

* src/cksum.c (output_file): Don't check for a write error here.
(main): Check for it here instead.
* tests/misc/io-errors.sh: Add a 'cksum' invocation for each supported
algorithm.
https://github.com/coreutils/coreutils/issues/258
</content>
</entry>
<entry>
<title>tests: avoid false failure with perl-IO-Tty &gt;= 1.24</title>
<updated>2026-04-27T10:15:44Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-27T10:14:51Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=0f85d79ed60de25b7530af7bbf1a97523fbbfca2'/>
<id>urn:sha1:0f85d79ed60de25b7530af7bbf1a97523fbbfca2</id>
<content type='text'>
* tests/misc/tty-eof.pl: https://bugzilla.redhat.com/2463168
</content>
</entry>
<entry>
<title>tests: all: ensure closed stdout is handled appropriately</title>
<updated>2026-04-25T15:18:24Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-25T15:16:49Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=85efb0f63c031e92096ba845da1a014155b755a0'/>
<id>urn:sha1:85efb0f63c031e92096ba845da1a014155b755a0</id>
<content type='text'>
* tests/misc/io-errors.sh: Add a check to ensure we diagose
writing to closed stdout.  Also ensure we exit with failure
in other cases.
* tests/misc/write-errors.sh: Likewise.
</content>
</entry>
<entry>
<title>comm: don't close standard input twice</title>
<updated>2026-04-23T02:12:44Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-04-22T03:10:55Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=c5ddd417aa8d8e1cf070445760e1747410fb42be'/>
<id>urn:sha1:c5ddd417aa8d8e1cf070445760e1747410fb42be</id>
<content type='text'>
* NEWS: Mention the bug fix.
* src/comm.c (usage): Remove mention that FILE1 and FILE2 cannot both be
standard input.
(compare_files): Only close standard input once.
* doc/coreutils.texi (comm invocation): Document the behavior of
'comm - -' which is not portable to all implementations.
* tests/comm/dash-dash.sh: New file.
* tests/misc/comm.pl: Move to tests/comm/comm.pl.
* tests/local.mk (all_tests): Add the new test. Rename the existing
test.
</content>
</entry>
<entry>
<title>tests: reinstate logname error verification</title>
<updated>2026-04-17T15:15:08Z</updated>
<author>
<name>Bruno Haible</name>
<email>bruno@clisp.org</email>
</author>
<published>2026-04-17T13:46:19Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=46f856156f98208335a5287d079c19f5820118b9'/>
<id>urn:sha1:46f856156f98208335a5287d079c19f5820118b9</id>
<content type='text'>
* tests/misc/user.sh: Modify the "unshare -U logname" test, so that it
does not fail on glibc versions (&lt; 2.28, &gt;= 2.38) that do a fallback
lookup based on the tty.
</content>
</entry>
<entry>
<title>tests: Avoid accidental matching of the vendor field of $host, part 2</title>
<updated>2026-04-17T04:16:08Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-04-17T04:07:26Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=70293149b5aea287f1728579243fadc67d38bbe7'/>
<id>urn:sha1:70293149b5aea287f1728579243fadc67d38bbe7</id>
<content type='text'>
* tests/local.mk (TESTS_ENVIRONMENT): Remove host_triplet.
* tests/chgrp/basic.sh: Use $host_os instead of $host_triplet.
* tests/misc/io-errors.sh: Likewise.
</content>
</entry>
<entry>
<title>tests: avoid a failure on musl</title>
<updated>2026-04-16T21:20:49Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-04-09T01:57:54Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=1603c75d747ab6c95d24ba31ef92bdf672c0b568'/>
<id>urn:sha1:1603c75d747ab6c95d24ba31ef92bdf672c0b568</id>
<content type='text'>
* tests/misc/io-errors.sh: Allow a generic error string on musl since
the first line is emitted immediately instead of being buffered as
expected.
Reported by Bruno Haible.
</content>
</entry>
<entry>
<title>tests: avoid failure on Manjaro Linux</title>
<updated>2026-04-16T20:07:46Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-16T20:07:46Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=04c77e27a7226dcf9ff68f956dc12acb3b9c74b5'/>
<id>urn:sha1:04c77e27a7226dcf9ff68f956dc12acb3b9c74b5</id>
<content type='text'>
* tests/misc/user.sh: Comment out part of test.
Reported by Bruno Haible.
</content>
</entry>
<entry>
<title>tests: avoid intermittent false failures with ksh</title>
<updated>2026-04-15T14:34:19Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2026-04-15T14:27:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=bc79ba83ac1fde8fed614c526bb32ae5413797c1'/>
<id>urn:sha1:bc79ba83ac1fde8fed614c526bb32ae5413797c1</id>
<content type='text'>
As noted in https://bugs.gnu.org/9089
ksh gives intermittent ECONNRESET errors with closed pipes.
This can be seen reliably on Linux with:
ksh -c 'yes | (sleep .1; head -n10 &gt;/dev/null)'

* tests/misc/io-errors.sh: Avoid part of test on ksh.
* tests/misc/write-errors.sh: Likewise.
</content>
</entry>
</feed>
