blob: bf26769d494f656cf1850933f88816c54e6cc89f [file] [log] [blame] [edit]
//@ run-pass
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
use std::process::Command;
use std::env;
fn main() {
let len = env::args().len();
if len == 1 {
test();
} else {
assert_eq!(len, 3);
}
}
fn test() {
let status = Command::new(&env::current_exe().unwrap())
.arg("foo").arg("")
.status().unwrap();
assert!(status.success());
}