Miri is not deterministic any more

This commit is contained in:
Ralf Jung 2019-06-30 17:02:20 +02:00
parent b067313552
commit 0ea4b50025

View File

@ -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()