about summary refs log tree commit diff
path: root/src/test/ui/process/process-spawn-nonexistent.rs
blob: 70de7316a817035af679bd0eb5337fdf0f5d71b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
// ignore-emscripten no processes
// ignore-sgx no processes

use std::io::ErrorKind;
use std::process::Command;

fn main() {
    assert_eq!(Command::new("nonexistent")
                   .spawn()
                   .unwrap_err()
                   .kind(),
               ErrorKind::NotFound);
}