2017-06-05 17:57:32 +01:00
|
|
|
use std::io::ErrorKind;
|
|
|
|
|
use std::process::Command;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
// Make sure it doesn't try to run "hopefullydoesntexist bar.exe".
|
2024-05-29 13:12:45 +00:00
|
|
|
assert_eq!(
|
|
|
|
|
Command::new("hopefullydoesntexist").arg("bar").spawn().unwrap_err().kind(),
|
|
|
|
|
ErrorKind::NotFound
|
2024-05-29 15:01:33 +10:00
|
|
|
);
|
2017-06-05 17:57:32 +01:00
|
|
|
}
|