1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-16 10:11:01 +00:00
uutils-coreutils/tests
Kevin Burke 7fc1b16115
sort: fix panic on write to closed pipe
If the output of sort is piped to another program that closes the file
descriptor, sort currently panics. The GNU coreutils is able to handle
this case.

Replacing panic with crash_if_err reports the closed pipe and exits
with a return code, which seems like the correct behavior. Tested on
my Mac and the panic disappears.

Add a test which pipes data to sort - it won't protect against this
specific regression, but it increases the test coverage, at least.

Fixes #1608.
2020-10-21 16:55:10 -07:00
..
by-util sort: fix panic on write to closed pipe 2020-10-21 16:55:10 -07:00
common tests ~ increase test detail to diagnose MacOS hostname test failure 2020-06-14 23:38:30 -05:00
fixtures test(expand): Add some tests for expand (#1505) 2020-05-15 18:09:10 -05:00
tests.rs tests ~ use build.rs build list of test_UTIL module files 2020-06-02 12:17:30 -05:00