Rollup merge of #46943 - malbarbo:process-test-busybox, r=alexcrichton

Fix process test when using busybox mkdir

busybox mkdir . returns 0
busybox mkdir ./ returns 1
This commit is contained in:
kennytm 2017-12-26 15:18:59 +08:00 committed by GitHub
commit 4ababefc55
1 changed files with 1 additions and 1 deletions

View File

@ -1584,7 +1584,7 @@ mod tests {
= if cfg!(target_os = "windows") {
Command::new("cmd").args(&["/C", "mkdir ."]).output().unwrap()
} else {
Command::new("mkdir").arg(".").output().unwrap()
Command::new("mkdir").arg("./").output().unwrap()
};
assert!(status.code() == Some(1));