mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
433da1fc04
They pass fine.
13 lines
346 B
Rust
13 lines
346 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);
|
|
}
|