3 // ignore-sgx no processes
4 // ignore-macos this needs valgrind 3.11 or higher; see
5 // https://github.com/rust-lang/rust/pull/30365#issuecomment-165763679
8 use std::process::{exit, Command};
11 if env::args().len() > 1 {
15 let out = Command::new(env::args().next().unwrap()).arg("foo")
17 assert!(out.status.success());
18 assert_eq!(String::from_utf8(out.stdout).unwrap(), "hello!");
19 assert_eq!(String::from_utf8(out.stderr).unwrap(), "");