Skip to content

Commit

Permalink
Merge #3380
Browse files Browse the repository at this point in the history
3380: compiletest: clean rmeta data (from "cargo check") before running compiletest r=phansch a=matthiaskrgr

Fixes #2896
Fixes #2139

Co-authored-by: Matthias Krüger <matthias.krueger@famsik.de>
  • Loading branch information
bors[bot] and matthiaskrgr committed Oct 29, 2018
2 parents e2df3e2 + be7656d commit 3971c42
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 3971c42

Please sign in to comment.