Skip to content

Commit

Permalink
clippy doesn't see that we are actually waiting on these
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Dec 9, 2024
1 parent 320f894 commit c417d16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/system/wait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ mod tests {

#[test]
fn exit_status() {
#[allow(clippy::zombie_processes)]
let command = std::process::Command::new("sh")
.args(["-c", "sleep 0.1; exit 42"])
.spawn()
Expand Down Expand Up @@ -196,6 +197,7 @@ mod tests {

#[test]
fn signals() {
#[allow(clippy::zombie_processes)]
let command = std::process::Command::new("sh")
.args(["-c", "sleep 1; exit 42"])
.spawn()
Expand Down Expand Up @@ -225,6 +227,7 @@ mod tests {

#[test]
fn no_hang() {
#[allow(clippy::zombie_processes)]
let command = std::process::Command::new("sh")
.args(["-c", "sleep 0.1; exit 42"])
.spawn()
Expand Down

0 comments on commit c417d16

Please sign in to comment.