From d7361426608c3b9b9c96076a1c9649b6df82cb7d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 19 Nov 2016 11:02:10 -0800 Subject: [PATCH] Fix tests on nightly --- tests/support/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/support/mod.rs b/tests/support/mod.rs index b5703d2..5c40984 100644 --- a/tests/support/mod.rs +++ b/tests/support/mod.rs @@ -23,6 +23,9 @@ impl Test { pub fn new() -> Test { let mut gcc = PathBuf::from(env::current_exe().unwrap()); gcc.pop(); + if gcc.ends_with("deps") { + gcc.pop(); + } gcc.push(format!("gcc-shim{}", env::consts::EXE_SUFFIX)); Test { td: TempDir::new("gcc-test").unwrap(),