From: Aleksey Kladov Date: Fri, 4 May 2018 15:02:57 +0000 (+0300) Subject: Try to diagnose/fix spurious windows error with better rm -r X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~16^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=25cab498a57813f7ec86288694c3424115200ff9;p=cargo.git Try to diagnose/fix spurious windows error with better rm -r --- diff --git a/tests/testsuite/build_script.rs b/tests/testsuite/build_script.rs index ec68f6cd6..2453f0907 100644 --- 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));