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 4309954 commit 9e5f61fCopy full SHA for 9e5f61f
library/std/src/process/tests.rs
@@ -585,7 +585,14 @@ fn run_canonical_bat_script() {
585
586
#[test]
587
fn terminate_exited_process() {
588
- let mut p = known_command().arg("hello").spawn().unwrap();
+ let mut cmd = if cfg!(target_os = "android") {
589
+ let mut p = shell_cmd();
590
+ p.args(&["-c", "true"]);
591
+ p
592
+ } else {
593
+ known_command()
594
+ };
595
+ let mut p = cmd.stdout(Stdio::null()).spawn().unwrap();
596
p.wait().unwrap();
597
assert!(p.kill().is_ok());
598
0 commit comments