Skip to content

Commit

Permalink
compiletest: clean rmeta data (from "cargo check") before running com…
Browse files Browse the repository at this point in the history
…piletest.

Fixes rust-lang#2896
Fixes rust-lang#2139
  • Loading branch information
matthiaskrgr committed Oct 29, 2018
1 parent 00ed705 commit be7656d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/compile-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config {
}

fn run_mode(mode: &str, dir: PathBuf) {
compiletest::run_tests(&config(mode, dir));
let cfg = config(mode, dir);
// clean rmeta data, otherwise "cargo check; cargo test" fails (#2896)
cfg.clean_rmeta();
compiletest::run_tests(&cfg);
}

fn run_ui_toml_tests(config: &compiletest::Config, mut tests: Vec<test::TestDescAndFn>) -> Result<bool, io::Error> {
Expand Down

0 comments on commit be7656d

Please sign in to comment.