-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
tests(cat,stdbuf): Add broken-pipe robustness tests (#4627) #8798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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:
|
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: