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