radicle-heartwood-lfs/crates/radicle-cli/tests
Fintan Halpenny 8f4b90db7b cli/test: Add broken pipe (SIGPIPE) tests
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
2026-04-29 10:57:24 +02:00
..
commands cli/test: Add broken pipe (SIGPIPE) tests 2026-04-29 10:57:24 +02:00
data repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
util radicle: Add Version to User Agent 2026-04-02 16:26:46 +01:00
commands.rs cli/test: Add broken pipe (SIGPIPE) tests 2026-04-29 10:57:24 +02:00