From 9e9d05e3ef7e32271c122b44438204e02326926a Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 28 Sep 2016 14:53:11 +0200 Subject: [PATCH] run compile-fail tests after run-pass tests it's annoying when debugging miri to have compile-fail tests fail due to some temporary assertions or panics. --- tests/compiletest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index e5058df95ea..ad83ea005f9 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -54,7 +54,6 @@ fn compile_test() { .expect("need to specify RUST_SYSROOT env var or use rustup or multirust") .to_owned(), }; - compile_fail(&sysroot); run_pass(); for_all_targets(&sysroot, |target| { let files = std::fs::read_dir("tests/run-pass").unwrap(); @@ -117,4 +116,5 @@ fn compile_test() { writeln!(stderr.lock(), "{} success, {} mir not found, {} crate not found, {} failed", success, mir_not_found, crate_not_found, failed).unwrap(); assert_eq!(failed, 0, "some tests failed"); }); + compile_fail(&sysroot); }