We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7fda44 commit 4309954Copy full SHA for 4309954
library/std/src/process/tests.rs
@@ -582,3 +582,11 @@ fn run_canonical_bat_script() {
582
assert!(output.status.success());
583
assert_eq!(String::from_utf8_lossy(&output.stdout).trim(), "Hello, fellow Rustaceans!");
584
}
585
+
586
+#[test]
587
+fn terminate_exited_process() {
588
+ let mut p = known_command().arg("hello").spawn().unwrap();
589
+ p.wait().unwrap();
590
+ assert!(p.kill().is_ok());
591
592
+}
0 commit comments