Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Sep 14, 2024
1 parent 177a37b commit 63acdd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/process/wait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fn test_waitpid_none() {
assert_eq!(pid, process::Pid::from_child(&child));
assert!(status.stopped());

// Clean up the child process.
unsafe { kill(child.id() as _, SIGKILL) };
}

Expand All @@ -44,10 +45,10 @@ fn test_waitpid_some() {
assert_eq!(rpid, pid);
assert!(status.stopped());

// Clean up the child process.
unsafe { kill(child.id() as _, SIGKILL) };
}

/*
#[test]
#[serial]
fn test_waitpgid() {
Expand All @@ -64,6 +65,9 @@ fn test_waitpgid() {
.unwrap();
assert_eq!(pid, process::Pid::from_child(&child));
assert!(status.stopped());

// Clean up the child process.
unsafe { kill(child.id() as _, SIGKILL) };
}

#[cfg(not(any(
Expand Down Expand Up @@ -158,4 +162,3 @@ fn test_waitid() {
#[cfg(not(any(target_os = "fuchsia", target_os = "netbsd")))]
assert_eq!(status.terminating_signal(), Some(SIGKILL as _));
}
*/

0 comments on commit 63acdd8

Please sign in to comment.