Skip to content

Commit

Permalink
Rollup merge of rust-lang#46943 - malbarbo:process-test-busybox, r=al…
Browse files Browse the repository at this point in the history
…excrichton

Fix process test when using busybox mkdir

busybox mkdir . returns 0
busybox mkdir ./ returns 1
  • Loading branch information
kennytm authored Dec 26, 2017
2 parents 720a4b5 + dc71cab commit 4ababef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4ababef

Please sign in to comment.