mirror of
https://github.com/nushell/nushell.git
synced 2024-12-26 17:09:06 +01:00
529c98085a
* Return error when `kill` didn't terminate successfully Signed-off-by: nibon7 <nibon7@163.com> * add test Signed-off-by: nibon7 <nibon7@163.com> Signed-off-by: nibon7 <nibon7@163.com>
10 lines
212 B
Rust
10 lines
212 B
Rust
use nu_test_support::nu;
|
|
|
|
#[test]
|
|
fn test_kill_invalid_pid() {
|
|
let pid = i32::MAX;
|
|
let actual = nu!(format!("kill {}", pid));
|
|
|
|
assert!(actual.err.contains("process didn't terminate successfully"));
|
|
}
|