From e4519579e77b5eb51ebe43296a7245731e018e49 Mon Sep 17 00:00:00 2001 From: Sean Leather Date: Mon, 3 Jun 2019 13:01:01 +0200 Subject: [PATCH] Create temp dir in same dir as gcc-shim In case the temporary director is not deleted, this makes it easy to find. It also means that it will get removed when `cargo clean` removes the target directory. --- tests/support/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/support/mod.rs b/tests/support/mod.rs index 2a8ff5b..8a24ccd 100644 --- a/tests/support/mod.rs +++ b/tests/support/mod.rs @@ -26,9 +26,10 @@ impl Test { if gcc.ends_with("deps") { gcc.pop(); } + let td = TempDir::new_in(&gcc, "gcc-test").unwrap(); gcc.push(format!("gcc-shim{}", env::consts::EXE_SUFFIX)); Test { - td: TempDir::new("gcc-test").unwrap(), + td: td, gcc: gcc, msvc: false, }