projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d57f6b0
)
Try to diagnose/fix spurious windows error with better rm -r
author
Aleksey Kladov
<aleksey.kladov@gmail.com>
Fri, 4 May 2018 15:02:57 +0000
(18:02 +0300)
committer
Aleksey Kladov
<aleksey.kladov@gmail.com>
Fri, 4 May 2018 15:02:57 +0000
(18:02 +0300)
tests/testsuite/build_script.rs
patch
|
blob
|
history
diff --git
a/tests/testsuite/build_script.rs
b/tests/testsuite/build_script.rs
index ec68f6cd6179e088c02425ab28e48592eb6d674c..2453f0907fb6e4d3055200d995d1e7336060efe5 100644
(file)
--- a/
tests/testsuite/build_script.rs
+++ b/
tests/testsuite/build_script.rs
@@
-3,6
+3,7
@@
use std::fs::{self, File};
use std::io::prelude::*;
use std::path::PathBuf;
+use cargo::util::paths::remove_dir_all;
use cargotest::{rustc_host, sleep_ms};
use cargotest::support::{cross_compile, execs, project};
use cargotest::support::paths::CargoPathExt;
@@
-3809,7
+3810,8
@@
fn rename_with_link_search_path() {
&root.join("foo.dll.lib"),
p2.root().join("foo.dll.lib"),
));
- fs::remove_dir_all(p.root()).unwrap();
+ remove_dir_all(p.root())
+ .unwrap();
// Everything should work the first time
assert_that(p2.cargo("run"), execs().with_status(0));