nu-command 0.112.2

Nushell's built-in commands
Documentation
1
2
3
4
5
6
7
8
9
10
use nu_test_support::prelude::*;

#[test]
fn test_kill_invalid_pid() -> Result {
    let pid = i32::MAX;
    let err = test().run(format!("kill {pid}")).expect_shell_error()?;

    assert_contains("process didn't terminate successfully", err.to_string());
    Ok(())
}