Skip to content

Commit

Permalink
Fix problems left in concurrent_recursive_mkdir
Browse files Browse the repository at this point in the history
Increase lifetime of `tmpdir`, and really change the length of test
path.
  • Loading branch information
dpc committed Mar 19, 2017
1 parent b5d590b commit 088696b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/libstd/fs.rs
Expand Up @@ -2283,9 +2283,10 @@ mod tests {

#[test]
fn concurrent_recursive_mkdir() {
for _ in 0..50 {
let mut dir = tmpdir().join("a");
for _ in 0..100 {
for _ in 0..100 {
let dir = tmpdir();
let mut dir = dir.join("a");
for _ in 0..40 {
dir = dir.join("a");
}
let mut join = vec!();
Expand Down

0 comments on commit 088696b

Please sign in to comment.