We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8264d39 commit c7977beCopy full SHA for c7977be
std/src/sync/rwlock/tests.rs
@@ -511,12 +511,15 @@ fn test_downgrade_basic() {
511
}
512
513
#[test]
514
+// FIXME: On macOS we use a provenance-incorrect implementation and Miri catches that issue.
515
+// See <https://github.com/rust-lang/rust/issues/121950> for details.
516
+#[cfg_attr(all(miri, target_os = "macos"), ignore)]
517
fn test_downgrade_observe() {
518
// Taken from the test `test_rwlock_downgrade` from:
519
// https://github.com/Amanieu/parking_lot/blob/master/src/rwlock.rs
520
521
const W: usize = 20;
- const N: usize = 100;
522
+ const N: usize = if cfg!(miri) { 40 } else { 100 };
523
524
// This test spawns `W` writer threads, where each will increment a counter `N` times, ensuring
525
// that the value they wrote has not changed after downgrading.
0 commit comments