We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 541fe5f + 9e1f531 commit bacd8bcCopy full SHA for bacd8bc
src/test/run-pass-fulldeps/issue-15149.rs
@@ -64,6 +64,10 @@ fn test() {
64
str::from_utf8(&child_output.stdout).unwrap(),
65
str::from_utf8(&child_output.stderr).unwrap()));
66
67
- fs::remove_dir_all(&child_dir).unwrap();
68
-
+ let res = fs::remove_dir_all(&child_dir);
+ if res.is_err() {
69
+ // On Windows deleting just executed mytest.exe can fail because it's still locked
70
+ std::thread::sleep_ms(1000);
71
+ fs::remove_dir_all(&child_dir).unwrap();
72
+ }
73
}
0 commit comments