]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-test.rs
Update changed ui tests
[rust.git] / tests / compile-test.rs
index d532d4e5a599e4a21ad81d890e5ec7fa9e5dc4e6..2b0fea0f8b9f0746e9f0496b70d36ad594044719 100644 (file)
@@ -46,7 +46,9 @@ fn config(dir: &'static str, mode: &'static str) -> compiletest::Config {
     config.target_rustcflags = Some(format!("-L {0} -L {0}/deps -Dwarnings", host_libs().display()));
 
     config.mode = cfg_mode;
-    config.build_base = {
+    config.build_base = if rustc_test_suite().is_some() {
+        PathBuf::from("/tmp/clippy_test_build_base")
+    } else {
         let mut path = std::env::current_dir().unwrap();
         path.push("target/debug/test_build_base");
         path