From 300162659504fed4798e535791023bf0174fc81c Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Sat, 7 May 2016 23:44:52 +0300 Subject: [PATCH] Always remove tmp/partitioning-tests before check-codegen-units to work around #33435. --- src/tools/compiletest/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index 245c3992bee..a9e6c454ffa 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -261,6 +261,11 @@ pub fn run_tests(config: &Config) { _ => { /* proceed */ } } + // FIXME(#33435) Avoid spurious failures in codegen-units/partitioning tests. + if let Mode::CodegenUnits = config.mode { + let _ = fs::remove_dir_all("tmp/partitioning-tests"); + } + let opts = test_opts(config); let tests = make_tests(config); // sadly osx needs some file descriptor limits raised for running tests in