Sign in
◑
Theme
android
/
toolchain
/
rustc
/
9cf678059bdfead0671d48dbbb51b152b62d6995
/
.
/
src
/
test
/
run-make-fulldeps
/
windows-spawn
/
spawn.rs
blob: c34da3d5fde4cbf586c402e6cfccb11a4e34c451 [
file
]
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
);
}