mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
enable leak check tests on Windows
This commit is contained in:
@@ -203,7 +203,7 @@ fn emulate_foreign_item_by_name(
|
||||
let ptr = this.read_scalar(ptr)?.not_undef()?;
|
||||
let ptr = this.force_ptr(ptr)?;
|
||||
if ptr.offset != Size::ZERO {
|
||||
throw_unsup_format!("Pointer passed to miri_static_root must point to beginning of an allocated block");
|
||||
throw_unsup_format!("pointer passed to miri_static_root must point to beginning of an allocated block");
|
||||
}
|
||||
this.machine.static_roots.push(ptr.alloc_id);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// ignore-windows: We do not check leaks on Windows
|
||||
|
||||
//error-pattern: the evaluated program leaked memory
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// ignore-windows: We do not check leaks on Windows
|
||||
|
||||
//error-pattern: the evaluated program leaked memory
|
||||
|
||||
use std::rc::Rc;
|
||||
|
||||
Reference in New Issue
Block a user