Skip to content

Commit

Permalink
Miri is not deterministic any more
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 30, 2019
1 parent b067313 commit 0ea4b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/run-pass/heap_allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ fn check_overalign_requests<T: Alloc>(mut allocator: T) {
let size = 8;
// Greater than `size`.
let align = 16;
// Miri is deterministic; no need to try many times.
let iterations = 1;

let iterations = 5;
unsafe {
let pointers: Vec<_> = (0..iterations).map(|_| {
allocator.alloc(Layout::from_size_align(size, align).unwrap()).unwrap()
Expand Down

0 comments on commit 0ea4b50

Please sign in to comment.