2 #![allow(unused_variables)]
4 // compile-flags:-C lto -C panic=unwind
7 // ignore-emscripten no processes
8 // ignore-sgx no processes
10 use std::process::Command;
17 println!("hurray you ran me");
22 let mut args = env::args_os();
23 let me = args.next().unwrap();
25 if let Some(s) = args.next() {
30 panic!("try to catch me");
33 let s = Command::new(env::args_os().next().unwrap()).arg("foo").output();
35 assert!(!s.status.success());
36 assert!(String::from_utf8_lossy(&s.stdout).contains("hurray you ran me"));