Skip to content

Stabilize clipboard non-zero-exit CI coverage#19

Merged
OneNoted merged 1 commit intouinput-root-guard-earlyfrom
uinput-root-guard-ci
Apr 15, 2026
Merged

Stabilize clipboard non-zero-exit CI coverage#19
OneNoted merged 1 commit intouinput-root-guard-earlyfrom
uinput-root-guard-ci

Conversation

@OneNoted
Copy link
Copy Markdown
Owner

Summary

  • make the clipboard failure test consume stdin before exiting non-zero
  • ensure CI reliably exercises the non-zero exit path instead of a broken-pipe race
  • keep the coverage focused on the intended error behavior

Verification

  • cargo test inject::tests:: -- --nocapture
  • cargo fmt --all -- --check
  • cargo check --all-targets
  • cargo clippy --all-targets -- -D warnings
  • cargo test

Follow-up stacked on #18.

Make the non-zero clipboard test consume stdin before exiting so CI reliably exercises the intended non-zero exit path instead of racing into a broken-pipe write.

Constraint: The test should still cover the non-zero exit path, not the broken-pipe write path
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep subprocess tests deterministic by making the child process consume the expected I/O before exiting
Tested: cargo test inject::tests:: -- --nocapture; cargo fmt --all -- --check; cargo check --all-targets; cargo clippy --all-targets -- -D warnings; cargo test
Not-tested: GitHub Actions rerun still pending
@OneNoted OneNoted merged commit 9dc45b7 into uinput-root-guard-early Apr 15, 2026
3 checks passed
@OneNoted OneNoted deleted the uinput-root-guard-ci branch April 15, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant