mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-28 21:50:26 +08:00
Add tests that verify the `rad` binary does not panic when its stdout is a broken pipe (e.g., `rad config | head -1`). Rust (since 1.62) ignores SIGPIPE by default (see [Rust #62569]), causing `println!` to panic with "failed printing to stdout: Broken pipe" instead of exiting silently. This is the standard Unix behaviour expected of CLI tools. These tests currently fail on `rad config` and `rad self`, and are set to `ignore`, to be enabled when fixed. [Rust #62569]: https://github.com/rust-lang/rust/issues/62569