Skip to content

Commit bc05692

Browse files
committed
enable leak check tests on Windows
1 parent fef5fa2 commit bc05692

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/shims/foreign_items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
203203
let ptr = this.read_scalar(ptr)?.not_undef()?;
204204
let ptr = this.force_ptr(ptr)?;
205205
if ptr.offset != Size::ZERO {
206-
throw_unsup_format!("Pointer passed to miri_static_root must point to beginning of an allocated block");
206+
throw_unsup_format!("pointer passed to miri_static_root must point to beginning of an allocated block");
207207
}
208208
this.machine.static_roots.push(ptr.alloc_id);
209209
}

tests/compile-fail/memleak.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// ignore-windows: We do not check leaks on Windows
2-
31
//error-pattern: the evaluated program leaked memory
42

53
fn main() {

tests/compile-fail/memleak_rc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// ignore-windows: We do not check leaks on Windows
2-
31
//error-pattern: the evaluated program leaked memory
42

53
use std::rc::Rc;

0 commit comments

Comments
 (0)