Skip to content

Commit

Permalink
skip static lazy tests with miri
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Sep 1, 2019
1 parent ded7d61 commit 327f4e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ mod sync {
}

#[test]
#[cfg(not(miri))] // leaks memory
fn static_lazy_via_fn() {
fn xs() -> &'static Vec<i32> {
static XS: OnceCell<Vec<i32>> = OnceCell::new();
Expand All @@ -331,6 +332,7 @@ mod sync {
}

#[test]
#[cfg(not(miri))] // leaks memory
fn eval_once_macro() {
macro_rules! eval_once {
(|| -> $ty:ty {
Expand Down

0 comments on commit 327f4e2

Please sign in to comment.