Skip to content

Commit

Permalink
add test for page size override flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nia-e committed Dec 11, 2022
1 parent 0c1c6b9 commit 3c76339
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/pass-dep/page_size_override.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//@compile-flags: -Zmiri-force-page-size=8

fn main() {
let page_size = page_size::get();

assert!(page_size == 8 * 1024, "8k page size override not respected: {}", page_size);
}

0 comments on commit 3c76339

Please sign in to comment.