]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/windows-spawn/spawn.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / 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 }