reenable all tests on Windows

This commit is contained in:
Ralf Jung 2019-07-11 18:41:53 +02:00
parent fe9056ee77
commit e7b39e382a
2 changed files with 2 additions and 13 deletions

View file

@ -31,20 +31,11 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
main_id: DefId,
config: MiriConfig,
) -> InterpResult<'tcx, InterpCx<'mir, 'tcx, Evaluator<'tcx>>> {
// FIXME(https://github.com/rust-lang/miri/pull/803): no validation on Windows.
let target_os = tcx.sess.target.target.target_os.to_lowercase();
let validate = if target_os == "windows" {
false
} else {
config.validate
};
let mut ecx = InterpCx::new(
tcx.at(syntax::source_map::DUMMY_SP),
ty::ParamEnv::reveal_all(),
Evaluator::new(),
MemoryExtra::new(config.seed.map(StdRng::seed_from_u64), validate),
MemoryExtra::new(config.seed.map(StdRng::seed_from_u64), config.validate),
);
let main_instance = ty::Instance::mono(ecx.tcx.tcx, main_id);

View file

@ -111,9 +111,7 @@ fn run_pass_miri(opt: bool) {
}
fn compile_fail_miri(opt: bool) {
if !cfg!(windows) { // FIXME re-enable on Windows
compile_fail("tests/compile-fail", &get_target(), opt);
}
compile_fail("tests/compile-fail", &get_target(), opt);
}
fn test_runner(_tests: &[&()]) {