mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-02 22:38:40 +00:00
11 lines
273 B
Rust
11 lines
273 B
Rust
use std::io::ErrorKind;
|
|
use std::process::Command;
|
|
|
|
fn main() {
|
|
// Make sure it doesn't try to run "hopefullydoesntexist bar.exe".
|
|
assert_eq!(
|
|
Command::new("hopefullydoesntexist").arg("bar").spawn().unwrap_err().kind(),
|
|
ErrorKind::NotFound
|
|
);
|
|
}
|