From a120fb7031c7ca7636ad3628b9758811e1303d41 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 4 Aug 2024 14:26:48 +0200 Subject: [PATCH] rwlock: disable 'frob' test in Miri on macOS --- library/std/src/sync/rwlock/tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/src/sync/rwlock/tests.rs index 12bb0fbf0503b..37a2e41641ac1 100644 --- a/library/std/src/sync/rwlock/tests.rs +++ b/library/std/src/sync/rwlock/tests.rs @@ -21,6 +21,10 @@ fn smoke() { } #[test] +// FIXME: On macOS we use a provenance-incorrect implementation and Miri +// catches that issue with a chance of around 1/1000. +// See for details. +#[cfg_attr(all(miri, target_os = "macos"), ignore)] fn frob() { const N: u32 = 10; const M: usize = if cfg!(miri) { 100 } else { 1000 };