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.
This commit is contained in:
Oliver Schneider 2016-09-28 14:53:11 +02:00
parent 6e13c3c983
commit 9e9d05e3ef
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46

View File

@ -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);
}