about summary refs log tree commit diff
path: root/tests/run-make/windows-spawn/spawn.rs
blob: 4afbaf876cd014478f6be46beffd80ec96d99413 (plain)
1
2
3
4
5
6
7
8
9
10
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
    );
}