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