tests(cat,stdbuf): Add broken-pipe robustness tests (#4627)#8798
Merged
sylvestre merged 5 commits intouutils:mainfrom Dec 25, 2025
Merged
tests(cat,stdbuf): Add broken-pipe robustness tests (#4627)#8798sylvestre merged 5 commits intouutils:mainfrom
sylvestre merged 5 commits intouutils:mainfrom
Conversation
Add test coverage for cat and stdbuf broken pipe handling: **cat tests:** - test_cat_broken_pipe_nonzero_and_message: Verify cat handles SIGPIPE without hanging or crashing and exits with nonzero status **stdbuf tests:** - test_permission_external_missing_lib: Handle missing external libstdbuf - test_no_such_external_missing_lib: Error handling in external lib mode - Guard existing tests with #[cfg(not(feature = "feat_external_libstdbuf"))] These tests address write-errors.sh from GNU test suite (uutils#4627) and improve cross-platform robustness for stdbuf feat_external_libstdbuf builds.
|
GNU testsuite comparison: |
CodSpeed Performance ReportMerging #8798 will not alter performanceComparing Summary
Footnotes |
…t from uutils#8684 / tracked in uutils#4627)
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
Ecordonnier
reviewed
Jan 19, 2026
|
|
||
| #[cfg(feature = "feat_external_libstdbuf")] | ||
| #[test] | ||
| fn test_permission_external_missing_lib() { |
Collaborator
There was a problem hiding this comment.
This test will fail if libstdbuf.so is installed to LIBSTDBUF_DIR. Were you aware of this? I'm considering sending a PR which removes the test as part of #10345 , because I don't see how to make it work reliably for local development.
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)
cat
stdbuf
Goal: improve GNU-compat write-error behavior while keeping tests stable across platforms.
Additional notes: