radicle-heartwood-lfs/crates/radicle-cli/tests/commands
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
..
checkout.rs cli/tests: Refactor checkout command tests 2026-03-11 10:51:57 +00:00
clone.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
cob.rs radicle: Refactor COB Storage Access 2026-03-31 17:57:14 +01:00
git.rs cli/tests: Refactor git command tests 2026-03-11 10:51:57 +00:00
id.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
inbox.rs cli/tests: Refactor inbox command tests 2026-03-11 10:51:57 +00:00
init.rs cli/tests: Refactor init command tests 2026-03-11 10:51:57 +00:00
issue.rs cli/tests: Refactor issue command tests 2026-03-11 10:51:57 +00:00
jj.rs cli/tests: Refactor jj command tests 2026-03-11 10:51:57 +00:00
node.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
patch.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
policy.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
remote.rs cli/tests: Refactor remote command tests 2026-03-11 10:51:57 +00:00
sigpipe.rs cli/test: Add broken pipe (SIGPIPE) tests 2026-04-29 10:57:24 +02:00
sync.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
utility.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
watch.rs cli/tests: Refactor watch command tests 2026-03-11 10:51:57 +00:00
workflow.rs cli/tests: Refactor workflow test 2026-03-11 10:51:57 +00:00