refactor(seq): format variable assignment on single line
Simplify code formatting by placing the 'ignored' variable assignment on a single line, improving readability without altering functionality.
1915ad3
2 months ago
by mattsu2020
+0.01%
test(seq): add test for SIGPIPE handling in seq
Add a new test to verify that on Unix systems, when SIGPIPE is ignored, seq properly reports a write error ("Broken pipe") and exits with code 1 when its output is piped to head. This ensures robust behavior in piping scenarios.
68ef63a
2 months ago
by mattsu2020
+0.01%
refactor(tests): format seq test script and add Unix-gated imports
- Split long script string in test_sigpipe_ignored_reports_write_error using concat! for improved readability
- Added #[cfg(unix)] attributes to TestScenario and util_name imports to restrict to Unix platforms, where SIGPIPE handling is applicable
bfe30c8
2 months ago
by mattsu2020
-3.15%
refactor(test): simplify code formatting in seq SIGPIPE test
- Combined multi-line string assignment and method chaining into single lines for conciseness and improved readability in test_sigpipe_ignored_reports_write_error.
d7b534e
2 months ago
by mattsu2020
+3.15%
Merge branch 'main' into seq_compatibility
684ba5c
29 days ago
by mattsu2020
-0.01%
refactor(seq): remove unused ErrorKind import and prefix unused sigpipe_ignored variable
Removed unused `ErrorKind` from std::io import to clean up imports. Prefixed `sigpipe_ignored` with underscore to suppress unused variable warnings, indicating it's not utilized in the current logic.
5e272de
29 days ago
by mattsu2020
-0.03%
fix(seq): properly handle SIGPIPE when ignored
Adjust error handling for BrokenPipe in seq to match GNU seq behavior:
- Exit with status 0 if SIGPIPE was not ignored (prints error message).
- Fail with error if SIGPIPE was explicitly ignored.
1670703
29 days ago
by mattsu2020
0%
fix: simplify write error handling in seq tool
Balance error checking logic to consistently return errors for write failures, ensuring proper propagation without conditional SIGPIPE handling.