use super::{std_teardown_action, StdTeardown};
#[test]
fn kill_success_reaps_with_a_blocking_wait() {
assert_eq!(std_teardown_action(&Ok(())), StdTeardown::ReapBlocking);
}
#[test]
fn eperm_never_blocks_even_without_an_elevated_flag() {
let eperm = std::io::Error::from(std::io::ErrorKind::PermissionDenied);
assert_eq!(std_teardown_action(&Err(eperm)), StdTeardown::ReapNonBlocking);
}
#[test]
fn any_other_kill_error_also_never_blocks() {
let other = std::io::Error::from(std::io::ErrorKind::NotFound);
assert_eq!(std_teardown_action(&Err(other)), StdTeardown::ReapNonBlocking);
}