mirror of
https://github.com/nukesor/pueue
synced 2024-07-21 10:14:16 +00:00
Merge branch 'better_test_suite' into v1.1.0
This commit is contained in:
commit
966cf2ff51
|
@ -30,9 +30,9 @@ pub fn compile_shell_command(command_string: &str) -> Command {
|
|||
}
|
||||
|
||||
pub fn send_internal_signal_to_child(
|
||||
child: &Child,
|
||||
signal: InternalSignal,
|
||||
send_to_children: bool,
|
||||
_child: &Child,
|
||||
_signal: InternalSignal,
|
||||
_send_to_children: bool,
|
||||
) -> Result<bool> {
|
||||
bail!("Trying to send unix signal on a windows machine. This isn't supported.");
|
||||
}
|
||||
|
@ -273,8 +273,6 @@ mod test {
|
|||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
|
||||
use pretty_assertions::assert_eq;
|
||||
|
||||
use super::*;
|
||||
|
||||
/// Assert that certain process id no longer exists
|
||||
|
@ -388,7 +386,7 @@ mod test {
|
|||
let pid = child.id();
|
||||
|
||||
// Get all processes, so we can make sure they no longer exist afterwards.
|
||||
let process_ids = assert_process_ids(pid, 1, 5000)?;
|
||||
let _ = assert_process_ids(pid, 1, 5000)?;
|
||||
|
||||
// Kill the process and make sure it'll be killed.
|
||||
assert!(kill_child(0, &mut child, false));
|
||||
|
|
Loading…
Reference in a new issue