1
Fork 0

forbid warnings only in the actual run-pass tests, not in the miri-pass tests

This commit is contained in:
Oliver Schneider 2016-09-15 16:12:36 +02:00
parent 00bd255fe0
commit eb594da409
No known key found for this signature in database
GPG key ID: 56D6EEA0FC67AC46

View file

@ -22,6 +22,8 @@ fn run_pass() {
let mut config = compiletest::default_config();
config.mode = "run-pass".parse().expect("Invalid mode");
config.src_base = PathBuf::from("tests/run-pass".to_string());
config.target_rustcflags = Some("-Dwarnings".to_string());
config.host_rustcflags = Some("-Dwarnings".to_string());
compiletest::run_tests(&config);
}
@ -67,7 +69,6 @@ fn compile_test() {
write!(stderr.lock(), "test [miri-pass] {} ... ", path.display()).unwrap();
let mut cmd = std::process::Command::new("target/debug/miri");
cmd.arg(path);
cmd.arg("-Dwarnings");
cmd.arg(format!("--target={}", target));
let libs = Path::new(&sysroot).join("lib");
let sysroot = libs.join("rustlib").join(&target).join("lib");