<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests, branch v9.2</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.2</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2023-03-19T23:44:51Z</updated>
<entry>
<title>tests: avoid false failure on systems without statx</title>
<updated>2023-03-19T23:44:51Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-19T23:35:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=445f502839b6b13d051612e989a02a36f8b9176e'/>
<id>urn:sha1:445f502839b6b13d051612e989a02a36f8b9176e</id>
<content type='text'>
* tests/ls/stat-free-symlinks.sh: Filter out syscalls that
return ENOSYS, as that was seen with statx() on Debian 10.13
on mips64, and resulted in overcounting of stat calls.
</content>
</entry>
<entry>
<title>tests: df: avoid false failure on systems with multiple roots</title>
<updated>2023-03-19T12:23:05Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-18T21:44:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=82bb131c551039971d6668dedc1975a770df88b9'/>
<id>urn:sha1:82bb131c551039971d6668dedc1975a770df88b9</id>
<content type='text'>
* tests/df/df-symlink.sh: Skip the test on systems
with multiple file system roots.
</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>
<entry>
<title>test: avoid a test hang on Hurd</title>
<updated>2023-03-15T18:11:00Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-15T18:11:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1d03781daa034b77f82c1dac7c0095ce65b1cb63'/>
<id>urn:sha1:1d03781daa034b77f82c1dac7c0095ce65b1cb63</id>
<content type='text'>
* tests/cp/sparse-to-pipe.sh: Protect the cp call seen to
hang on Hurd/i686 with a timeout.
Reported By: Bruno Haible
</content>
</entry>
<entry>
<title>ls: --color: honor separate sequences for extension cases</title>
<updated>2023-03-13T16:20:38Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2022-09-04T18:59:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=47988fad885e8129f9dc36f0ed4d63375de23603'/>
<id>urn:sha1:47988fad885e8129f9dc36f0ed4d63375de23603</id>
<content type='text'>
Following on from commit v8.29-45-g24053fbd8 which unconditionally
used case insensitive extension matching, support selective
case sensitive matching when there are separate extension cases
defined with different display sequences.

* src/dircolors.hin: Document how file name suffixes are matched.
Note this is displayed with `dircolors --print-database` which
the texi info recommends to use for details.
* src/ls.c (parse_ls_color): Postprocess the list to
mark entries for case sensitive matching,
and also adjust so that unmatchable entries are more quickly ignored.
(get_color_indicator): Use exact matching rather than
case insensitive matching if so marked.
* tests/ls/color-ext.sh: Add test cases.
* NEWS: Mention the change in behavior.
Addresses https://bugs.gnu.org/33123
</content>
</entry>
<entry>
<title>tests: adjust du test for recent apparent size change</title>
<updated>2023-03-13T16:20:38Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-13T15:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1ac1d6def69e1faaefd1b41492764ef27c90b7a5'/>
<id>urn:sha1:1ac1d6def69e1faaefd1b41492764ef27c90b7a5</id>
<content type='text'>
* tests/du/threshold.sh: Directories are assumed to be
of size 0 with --apparent since commit v9.1-187-g110bcd283
so remove --apparent cases from this test.
</content>
</entry>
<entry>
<title>tee: support non blocking outputs</title>
<updated>2023-03-08T18:32:05Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-05T15:51:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=16000805eb1bcdf25360471b8bbc8ec3f025e035'/>
<id>urn:sha1:16000805eb1bcdf25360471b8bbc8ec3f025e035</id>
<content type='text'>
Non blocking outputs can be seen for example
when piping telnet through tee to a terminal.
In that case telnet sets its input to nonblocking mode,
which results in tee's output being nonblocking,
in which case in may receive an EAGAIN error upon write().
The same issue was seen with mpirun.
The following can be used to reproduce this
locally at a terminal (in most invocations):

  $ { dd iflag=nonblock count=0 status=none;
      dd bs=10K count=10 if=/dev/zero status=none; } |
    tee || echo fail &gt;/dev/tty

* src/iopoll.c (iopoll_internal): A new function refactored from
iopoll(), to also support a mode where we check the output
descriptor is writeable.
(iopoll): Now refactored to just call iopoll_internal().
(fwait_for_nonblocking_write): A new internal function which
uses iopoll_internal() to wait for writeable output
if an EAGAIN or EWOULDBLOCK was received.
(fwrite_nonblock): An fwrite() wrapper which uses
fwait_for_nonblocking_write() to handle EAGAIN.
(fclose_nonblock): Likewise.
src/iopoll.h: Add fclose_nonblock, fwrite_nonblock.
src/tee.c: Call fclose_nonblock() and fwrite_nonblock wrappers,
instead of the standard functions.
* tests/misc/tee.sh: Add a test case.
* NEWS: Mention the improvement.

The idea was suggested by Kamil Dudka in
https://bugzilla.redhat.com/1615467
</content>
</entry>
<entry>
<title>split: support split -n on larger pipe input</title>
<updated>2023-03-07T21:41:46Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2023-03-07T20:58:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=bb9dbcbbfd5c3159f975f39336a33319c6c5df04'/>
<id>urn:sha1:bb9dbcbbfd5c3159f975f39336a33319c6c5df04</id>
<content type='text'>
* bootstrap.conf (gnulib_modules): Add free-posix, tmpfile.
* src/split.c (copy_to_tmpfile): New function.
(input_file_size): Use it to split larger files when sizes cannot
easily be determined via fstat or lseek.  See Bug#61386#235.
* tests/split/l-chunk.sh: Mark tests of /dev/zero as
very expensive since they exhaust /tmp.
</content>
</entry>
<entry>
<title>tee: fix a crash with unwriteable files</title>
<updated>2023-03-07T01:14:00Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-03-07T01:12:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=35ac97e0d601d5a20bf986bad052f0f94a504561'/>
<id>urn:sha1:35ac97e0d601d5a20bf986bad052f0f94a504561</id>
<content type='text'>
This was introduced recently with commit v9.1-166-g6b12e62d9

* src/tee.c (tee_files): Check the return from fopen()
before passing to fileno() etc.
* tests/misc/tee.sh: Add a test case.
</content>
</entry>
<entry>
<title>maint: pacify ‘make syntax-check’</title>
<updated>2023-03-06T23:39:07Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2023-03-06T23:37:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a4778006c8f2b669afcc45456acf0d21f228208d'/>
<id>urn:sha1:a4778006c8f2b669afcc45456acf0d21f228208d</id>
<content type='text'>
Problem reported by Pádraig Brady (Bug#61386#226).
* src/split.c (parse_chunk): Use die instead of error.
(main): Quote a string.
* tests/local.mk (all_root_tests): Move du/apparent.sh from here ...
(all_tests): ... to here.
</content>
</entry>
</feed>
