@@ -389,7 +389,7 @@ fn test_reverse() {
389
389
}
390
390
391
391
#[ test]
392
- #[ cfg( not( miri) ) ] // Miri does not support entropy
392
+ #[ cfg( not( miri) ) ] // Miri is too slow
393
393
fn test_sort ( ) {
394
394
let mut rng = thread_rng ( ) ;
395
395
@@ -466,10 +466,19 @@ fn test_sort() {
466
466
}
467
467
468
468
#[ test]
469
- #[ cfg( not( miri) ) ] // Miri does not support entropy
470
469
fn test_sort_stability ( ) {
471
- for len in ( 2 ..25 ) . chain ( 500 ..510 ) {
472
- for _ in 0 ..10 {
470
+ #[ cfg( not( miri) ) ] // Miri is too slow
471
+ let large_limit = 510 ;
472
+ #[ cfg( not( miri) ) ] // Miri is too slow
473
+ let rounds = 10 ;
474
+
475
+ #[ cfg( miri) ]
476
+ let large_limit = 500 ; // effectively skips the large tests
477
+ #[ cfg( miri) ]
478
+ let rounds = 1 ;
479
+
480
+ for len in ( 2 ..25 ) . chain ( 500 ..large_limit) {
481
+ for _ in 0 ..rounds {
473
482
let mut counts = [ 0 ; 10 ] ;
474
483
475
484
// create a vector like [(6, 1), (5, 1), (6, 2), ...],
@@ -1397,7 +1406,7 @@ fn test_box_slice_clone() {
1397
1406
#[ test]
1398
1407
#[ allow( unused_must_use) ] // here, we care about the side effects of `.clone()`
1399
1408
#[ cfg_attr( target_os = "emscripten" , ignore) ]
1400
- #[ cfg( not( miri) ) ] // Miri does not support threads nor entropy
1409
+ #[ cfg( not( miri) ) ] // Miri does not support threads
1401
1410
fn test_box_slice_clone_panics ( ) {
1402
1411
use std:: sync:: Arc ;
1403
1412
use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
@@ -1589,7 +1598,7 @@ thread_local!(static SILENCE_PANIC: Cell<bool> = Cell::new(false));
1589
1598
1590
1599
#[ test]
1591
1600
#[ cfg_attr( target_os = "emscripten" , ignore) ] // no threads
1592
- #[ cfg( not( miri) ) ] // Miri does not support threads nor entropy
1601
+ #[ cfg( not( miri) ) ] // Miri does not support threads
1593
1602
fn panic_safe ( ) {
1594
1603
let prev = panic:: take_hook ( ) ;
1595
1604
panic:: set_hook ( Box :: new ( move |info| {
0 commit comments