]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/windows-spawn/spawn.rs
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
[rust.git] / src / test / run-make-fulldeps / windows-spawn / spawn.rs
1 use std::io::ErrorKind;
2 use std::process::Command;
3
4 fn main() {
5     // Make sure it doesn't try to run "hopefullydoesntexist bar.exe".
6     assert_eq!(Command::new("hopefullydoesntexist")
7                    .arg("bar")
8                    .spawn()
9                    .unwrap_err()
10                    .kind(),
11                ErrorKind::NotFound);
12 }