Skip to content

Commit

Permalink
Fix test run-pass-fulldeps\issue-15149.rs on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed May 19, 2015
1 parent b301e02 commit 9e1f531
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/run-pass-fulldeps/issue-15149.rs
Expand Up @@ -64,6 +64,10 @@ fn test() {
str::from_utf8(&child_output.stdout).unwrap(),
str::from_utf8(&child_output.stderr).unwrap()));

fs::remove_dir_all(&child_dir).unwrap();

let res = fs::remove_dir_all(&child_dir);
if res.is_err() {
// On Windows deleting just executed mytest.exe can fail because it's still locked
std::thread::sleep_ms(1000);
fs::remove_dir_all(&child_dir).unwrap();
}
}

0 comments on commit 9e1f531

Please sign in to comment.