tests(tee): Add GNU-compat write-error and broken-pipe tests (#4627)#8797
Merged
sylvestre merged 2 commits intouutils:mainfrom Oct 4, 2025
Merged
Conversation
…4627) Add comprehensive test coverage for tee --output-error and broken pipe behavior: - test_output_error_flag_without_value_defaults_warn_nopipe: Verify default behavior - test_output_error_presence_only_broken_pipe_unix: Non-crash on SIGPIPE - test_broken_pipe_early_termination_stdout_only: Early termination robustness - test_write_failure_reports_error_and_nonzero_exit: Error reporting validation These tests address remaining gaps from GNU test suite tests/misc/tee.sh and tests/misc/write-errors.sh highlighted in uutils#4627. Platform-specific guards (#[cfg(unix)], FreeBSD exclusion) ensure cross-platform compatibility.
|
GNU testsuite comparison: |
CodSpeed Performance ReportMerging #8797 will not alter performanceComparing Summary
Benchmarks breakdown
Footnotes
|
|
GNU testsuite comparison: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #4627 (split from #8684 per maintainer request)
Adds tests to cover tee --output-error behavior and broken pipe robustness:
Notes:
Tracked at #4627