Skip to content

date, comm, tty: Fixing handling output to dev/null#10888

Merged
sylvestre merged 3 commits intouutils:mainfrom
ChrisDryden:fix-io-errors-test
Feb 12, 2026
Merged

date, comm, tty: Fixing handling output to dev/null#10888
sylvestre merged 3 commits intouutils:mainfrom
ChrisDryden:fix-io-errors-test

Conversation

@ChrisDryden
Copy link
Collaborator

These were part of the new test cases added to the io-error gnu test where we have a mix of different causes that make us provide the wrong exit code and error message. In date, there was no flush before the WriteBuf was dropped so there was no error handling. In tty, we ignored the pipeline signal before the clap handling and in GNU the expectation is that this is done after the argument handling and in comm we flushed the buffer but we ignored the error message.

This should make the io-error gnu test pass now.

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/misc/io-errors is no longer failing!

@sylvestre sylvestre merged commit dec633c into uutils:main Feb 12, 2026
171 of 172 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants