rust/src/test/run-pass/process/process-spawn-nonexistent.rs

15 lines
314 B
Rust
Raw Normal View History

// run-pass
// ignore-cloudabi no processes
// ignore-emscripten no processes
use std::io::ErrorKind;
use std::process::Command;
fn main() {
assert_eq!(Command::new("nonexistent")
.spawn()
.unwrap_err()
.kind(),
ErrorKind::NotFound);
}