We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff693dc commit 29cfefdCopy full SHA for 29cfefd
src/test/ui/process/process-spawn-nonexistent.rs
@@ -6,9 +6,11 @@ use std::io::ErrorKind;
6
use std::process::Command;
7
8
fn main() {
9
- assert_eq!(Command::new("nonexistent")
10
- .spawn()
11
- .unwrap_err()
12
- .kind(),
13
- ErrorKind::NotFound);
+ let result = Command::new("nonexistent").spawn().unwrap_err().kind();
+
+ assert!(matches!(
+ result,
+ // Under WSL with appendWindowsPath=true, this fails with PermissionDenied
14
+ ErrorKind::NotFound | ErrorKind::PermissionDenied
15
+ ));
16
}
0 commit comments