File tree 1 file changed +4
-1
lines changed
library/std/src/sync/rwlock
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -511,12 +511,15 @@ fn test_downgrade_basic() {
511
511
}
512
512
513
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) ]
514
517
fn test_downgrade_observe ( ) {
515
518
// Taken from the test `test_rwlock_downgrade` from:
516
519
// https://github.com/Amanieu/parking_lot/blob/master/src/rwlock.rs
517
520
518
521
const W : usize = 20 ;
519
- const N : usize = 100 ;
522
+ const N : usize = if cfg ! ( miri ) { 40 } else { 100 } ;
520
523
521
524
// This test spawns `W` writer threads, where each will increment a counter `N` times, ensuring
522
525
// that the value they wrote has not changed after downgrading.
You can’t perform that action at this time.
0 commit comments