Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
17
tests/ui/process/process-spawn-nonexistent.rs
Normal file
17
tests/ui/process/process-spawn-nonexistent.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
// run-pass
|
||||
// ignore-emscripten no processes
|
||||
// ignore-sgx no processes
|
||||
// ignore-fuchsia ErrorKind not translated
|
||||
|
||||
use std::io::ErrorKind;
|
||||
use std::process::Command;
|
||||
|
||||
fn main() {
|
||||
let result = Command::new("nonexistent").spawn().unwrap_err().kind();
|
||||
|
||||
assert!(matches!(
|
||||
result,
|
||||
// Under WSL with appendWindowsPath=true, this fails with PermissionDenied
|
||||
ErrorKind::NotFound | ErrorKind::PermissionDenied
|
||||
));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue