about summary refs log tree commit diff
path: root/src/test/ui/process/process-spawn-nonexistent.rs
blob: 182cf1748fec68e1d28fca99c4b652c13bb50c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
// ignore-cloudabi no processes
// 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);
}