<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc, branch v9.3</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.3</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2023-04-13T23:02:22Z</updated>
<entry>
<title>tests: tty-eof: fix various issues</title>
<updated>2023-04-13T23:02:22Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-04-11T12:02:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cf91b9d62cc936ae4942c1d5def0db448a2c8b25'/>
<id>urn:sha1:cf91b9d62cc936ae4942c1d5def0db448a2c8b25</id>
<content type='text'>
* tests/misc/tty-eof.pl: Ensure we don't erroneously
skip commands with parameters.
Comment as to why cut(1) is treated differently.
Adjust expect calls to not wait needlessly for cut output.
</content>
</entry>
<entry>
<title>wc: ensure we update file offset</title>
<updated>2023-04-08T11:19:40Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-02-05T19:52:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ce630dfc7ef32ff7e35c627bd061a45ce9053d9d'/>
<id>urn:sha1:ce630dfc7ef32ff7e35c627bd061a45ce9053d9d</id>
<content type='text'>
* src/wc.c (wc): Update the offset when not reading,
and do read if we can't update the offset.
* tests/misc/wc-proc.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes https://bugs.gnu.org/61300
</content>
</entry>
<entry>
<title>tests: tee: avoid false failure due to fifo usage</title>
<updated>2023-03-31T10:58:53Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-30T14:49:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=17c31a73f13ad320746e5b7e81a5883d7295d278'/>
<id>urn:sha1:17c31a73f13ad320746e5b7e81a5883d7295d278</id>
<content type='text'>
* tests/misc/tee.sh: Call cleanup_ in all cases to ensure
there are no overlapping interactions on the fifo that
might impact later parts of the test.  This was seen to
cause issue with dash on musl libc.
Addresses https://bugs.gnu.org/62542
</content>
</entry>
<entry>
<title>tests: adjust csplit VM limit</title>
<updated>2023-03-31T10:58:53Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-30T13:28:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5e170ff0b842df5c40fac9095e7c72ddc1517e2a'/>
<id>urn:sha1:5e170ff0b842df5c40fac9095e7c72ddc1517e2a</id>
<content type='text'>
* tests/misc/csplit-heap.sh: More memory is required to avoid
a false failure on some systems.  Noticed with musl libc
with bash as the shell.  This is confirmed to still easily
trigger with the original memory leak being tested.
Addresses https://bugs.gnu.org/62542
</content>
</entry>
<entry>
<title>wc: diagnose overflow of total counts</title>
<updated>2023-03-31T10:58:49Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-29T14:29:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7ad749886cddc76860bd8cfc38a408032a5e4c99'/>
<id>urn:sha1:7ad749886cddc76860bd8cfc38a408032a5e4c99</id>
<content type='text'>
* src/wc.c (wc): Use INT_ADD_WRAPV() to detect overflow.
(main): Upon overflow, saturate the total, print a diagnostic,
and set exit status.
* tests/misc/wc-total.sh: Add a test case, which operates
on BTRFS and 64 bit systems at least.
Reported at https://bugs.debian.org/1027100
</content>
</entry>
<entry>
<title>dircolors: diagnose read errors</title>
<updated>2023-03-28T13:24:29Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-28T13:24:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a9bd274616a8d2e99736b498e657cda4e6954f3f'/>
<id>urn:sha1:a9bd274616a8d2e99736b498e657cda4e6954f3f</id>
<content type='text'>
* NEWS: Mention the fix.
* src/dircolors.c: Fail upon read error from getline().
* tests/misc/dircolors.sh: Add a new test.
* tests/local.mk: Reference the new test.
</content>
</entry>
<entry>
<title>tests: add a test case for the previous date fix</title>
<updated>2023-03-28T12:40:43Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-28T12:38:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a4525de1ef593cb3873eb88caa7279eb32669bda'/>
<id>urn:sha1:a4525de1ef593cb3873eb88caa7279eb32669bda</id>
<content type='text'>
* NEWS: Also mention this bug fix.
* tests/misc/date-f.sh: Add a new test.
* tests/local.mk: Reference the new test.
</content>
</entry>
<entry>
<title>cksum: fix reporting of failed checks</title>
<updated>2023-03-23T12:36:53Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-23T12:31:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=76f2fb627118a26c25003dbd98c22c153b7ee1d2'/>
<id>urn:sha1:76f2fb627118a26c25003dbd98c22c153b7ee1d2</id>
<content type='text'>
This applies to all checksumming utilities,
where we incorrectly report all subsequent files as checking 'OK'
once any file has passed a digest check.
The exit status was not impacted, only the printed status.

* src/digest.c (digest_check): Use the correct state variable
to determine if the _current_ file has passed or not.
* tests/misc/md5sum.pl: Add a test case.
Fixes https://bugs.gnu.org/62403
</content>
</entry>
<entry>
<title>tests: skip some parts of tests/misc/tee.sh if run as root</title>
<updated>2023-03-21T16:15:18Z</updated>
<author>
<name>Nick Alcock</name>
<email>nick.alcock@oracle.com</email>
</author>
<published>2023-03-21T12:54:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=eeabb11eb6697a137894db066715a07550c6d82a'/>
<id>urn:sha1:eeabb11eb6697a137894db066715a07550c6d82a</id>
<content type='text'>
Similarly to the fix to tests/rmdir/ignore.sh in c0e5f8c59,
tee should not be expected to fail when run with read-only outputs
when run as root.

* tests/misc/tee.sh: Add uid_is_privileged_ guard around test for
read-only outputs.
</content>
</entry>
<entry>
<title>tests: aix: avoid unsupported functionality</title>
<updated>2023-03-18T11:44:24Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-17T19:57:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a109106eb8d68569ec0dc7c32f28f755b5e80764'/>
<id>urn:sha1:a109106eb8d68569ec0dc7c32f28f755b5e80764</id>
<content type='text'>
* tests/misc/tee.sh: AIX doesn't support detecting
closed outputs either with poll() or select() so avoid
testing that functionality.
* tests/tail-2/pipe-f.sh: Likewise.
</content>
</entry>
</feed>
