<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/sort, 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-02-12T17:27:49Z</updated>
<entry>
<title>tests: sort: ensure --batch-size=(rlimit+1) fails</title>
<updated>2026-02-12T17:27:49Z</updated>
<author>
<name>oech3</name>
<email>79379754+oech3@users.noreply.github.com</email>
</author>
<published>2026-02-01T13:46:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f638c29df65270401e7edf8e1f7a66e8b482a2a8'/>
<id>urn:sha1:f638c29df65270401e7edf8e1f7a66e8b482a2a8</id>
<content type='text'>
* tests/sort/sort-merge-fdlimit.sh: Add test case.
https://github.com/coreutils/coreutils/pull/182
</content>
</entry>
<entry>
<title>tests: avoid failures if 'ulimit -n' cannot set file descriptor limits</title>
<updated>2026-01-24T19:20:56Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-01-24T19:15:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ec77664a31c474319e4987f1194b009769410477'/>
<id>urn:sha1:ec77664a31c474319e4987f1194b009769410477</id>
<content type='text'>
This fixes test failures seen on Haiku.

* tests/ls/recursive.sh: Run 'ls' even if ulimit fails.
* tests/split/r-chunk.sh: Run 'split' even if ulimit fails.
* tests/sort/sort-merge-fdlimit.sh: Skip test if 'ulimit -n' cannot set
file descriptor limits.
Reported by Bruno Haible.
</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: fix recent portability issue with printf</title>
<updated>2025-12-11T22:02:55Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-12-11T22:02:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=06ed0625bd856877f9799ed92ae48d97b5e2af11'/>
<id>urn:sha1:06ed0625bd856877f9799ed92ae48d97b5e2af11</id>
<content type='text'>
* tests/sort/sort-locale.sh: Avoid non portable printf \u....
* cfg.mk (sc_env_printf): Add a new syntax check to flag future cases.
</content>
</entry>
<entry>
<title>tests: fix non-portable use of printf '\x..'</title>
<updated>2025-12-08T22:32:48Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-12-08T22:32:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2692d599ec46696dcd69458abb75c9c6a9dd0221'/>
<id>urn:sha1:2692d599ec46696dcd69458abb75c9c6a9dd0221</id>
<content type='text'>
* tests/dd/conv-case.sh: Use octal instead.
* tests/ls/hyperlink.sh: Likewise.
* tests/sort/sort-locale.sh: Likewise.
</content>
</entry>
<entry>
<title>test: re-enable tests that had a false requirement on coreutils' kill</title>
<updated>2025-11-29T12:17:27Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-11-28T17:39:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=faa566372d54f12bc4d89b367e386fc38bf127cd'/>
<id>urn:sha1:faa566372d54f12bc4d89b367e386fc38bf127cd</id>
<content type='text'>
Recently we've not built our kill command by default,
so reduce test dependence on that.

* tests/sort/sort-compress-proc.sh: `kill -l [exit_status]` is well
supported, and is a POSIX requirement.
* tests/timeout/timeout.sh: There were actually no kill invocations
in this test at all.
</content>
</entry>
<entry>
<title>tests: add tests for locale ordering</title>
<updated>2025-11-11T14:29:36Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-11-07T20:49:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d6fc91f37a033b1cf6325dc6b047f2a633bc16f7'/>
<id>urn:sha1:d6fc91f37a033b1cf6325dc6b047f2a633bc16f7</id>
<content type='text'>
* tests/sort/sort-locale.sh: Check sort,ls have the same (non C) order.
* tests/local.mk: Reference the new test.
</content>
</entry>
<entry>
<title>sort: fix silent exit upon SIGPIPE from --compress-program</title>
<updated>2025-10-29T19:03:23Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-10-28T19:30:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b294aff3fe6c8ebeda02b8c77877ba618474de41'/>
<id>urn:sha1:b294aff3fe6c8ebeda02b8c77877ba618474de41</id>
<content type='text'>
* src/sort.c (main): Ignore SIGPIPE so we've more control over
how we handle for stdout and compression programs.
(sort_die): Handle EPIPE from stdout and mimic a standard SIGPIPE,
otherwise reverting to a standard exit(SORT_FAILURE);
* tests/sort/sort-compress-proc.sh: Add a test case.
* NEWS: Mention the bug fix.
</content>
</entry>
<entry>
<title>sort: use the more efficient posix_spawn to invoke --compress-program</title>
<updated>2025-10-25T19:59:08Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2025-10-24T04:27:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2b3eb795c85633a4b808df44d19a4a9be5976c10'/>
<id>urn:sha1:2b3eb795c85633a4b808df44d19a4a9be5976c10</id>
<content type='text'>
* NEWS: Mention the improvement. Mention that 'sort' will continue
without compressing temporary files if the program specified by
--compress-program cannot be executed.
* doc/coreutils.texi (sort invocation): Document the behavior when the
program specified by --compress-program cannot be executed.
* src/sort.c: Include spawn.h.
(MAX_FORK_TRIES_COMPRESS, MAX_FORK_TRIES_DECOMPRESS): Remove definition.
(MAX_TRIES_COMPRESS, MAX_TRIES_DECOMPRESS): New definitions based on
MAX_FORK_TRIES_COMPRESS and MAX_FORK_TRIES_DECOMPRESS.
(async_safe_die): Remove function.
(posix_spawn_file_actions_move_fd): New function.
(pipe_fork): Remove function.
(pipe_child): New function based on pipe_fork. Return an error number
instead of a pid. Use posix_spawnp instead of calling fork and expecting
the caller to exec.
(maybe_create_temp): Call pipe_child instead of pipe_fork. Print a
warning to standard error if --compress-program cannot be executed and
the error is different than the previous call. Remove code for the child
process.
(open_temp): Remove code for the child process. Improve error message.
* tests/sort/sort-compress.sh: Add a test case for when the program
specified by --compress-program does not exist.
</content>
</entry>
<entry>
<title>maint: use consistent references to standard files in messages</title>
<updated>2025-08-06T01:46:04Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2025-08-06T01:46:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c9a30d67814f4b7daac7cdd33b69822ce5313d48'/>
<id>urn:sha1:c9a30d67814f4b7daac7cdd33b69822ce5313d48</id>
<content type='text'>
* cfg.mk (sc_standard_outputs): Add a grep command for source files.
* src/du.c (main): Use standard input instead of stdin, standard output
instead of stdout, and standard error instead of stderr in messages.
* src/nohup.c (main): Likewise.
* src/sort.c (main): Likewise.
* src/split.c (main): Likewise.
* src/stdbuf.c (main): Likewise.
* src/wc.c (main): Likewise.
* tests/du/files0-from.pl (@Tests): Adjust test case to new messages.
* tests/sort/sort-files0-from.pl: Likewise.
* tests/wc/wc-files0-from.pl: Likewise.
</content>
</entry>
</feed>
