File tree 5 files changed +2
-19
lines changed
5 files changed +2
-19
lines changed Original file line number Diff line number Diff line change 1
- // Disabling on android for the time being
2
- // See https://github.com/rust-lang/rust/issues/73535#event-3477699747
3
- #![ cfg( not( target_os = "android" ) ) ]
4
1
// Disabling in Miri as these would take too long.
5
2
#![ cfg( not( miri) ) ]
6
3
#![ feature( btree_extract_if) ]
Original file line number Diff line number Diff line change @@ -723,7 +723,6 @@ fn test_reserve_exact() {
723
723
724
724
#[ test]
725
725
#[ cfg_attr( miri, ignore) ] // Miri does not support signalling OOM
726
- #[ cfg_attr( target_os = "android" , ignore) ] // Android used in CI has a broken dlmalloc
727
726
fn test_try_with_capacity ( ) {
728
727
let string = String :: try_with_capacity ( 1000 ) . unwrap ( ) ;
729
728
assert_eq ! ( 0 , string. len( ) ) ;
@@ -734,7 +733,6 @@ fn test_try_with_capacity() {
734
733
735
734
#[ test]
736
735
#[ cfg_attr( miri, ignore) ] // Miri does not support signalling OOM
737
- #[ cfg_attr( target_os = "android" , ignore) ] // Android used in CI has a broken dlmalloc
738
736
fn test_try_reserve ( ) {
739
737
// These are the interesting cases:
740
738
// * exactly isize::MAX should never trigger a CapacityOverflow (can be OOM)
@@ -803,7 +801,6 @@ fn test_try_reserve() {
803
801
804
802
#[ test]
805
803
#[ cfg_attr( miri, ignore) ] // Miri does not support signalling OOM
806
- #[ cfg_attr( target_os = "android" , ignore) ] // Android used in CI has a broken dlmalloc
807
804
fn test_try_reserve_exact ( ) {
808
805
// This is exactly the same as test_try_reserve with the method changed.
809
806
// See that test for comments.
Original file line number Diff line number Diff line change @@ -1695,7 +1695,6 @@ fn test_reserve_exact() {
1695
1695
1696
1696
#[ test]
1697
1697
#[ cfg_attr( miri, ignore) ] // Miri does not support signalling OOM
1698
- #[ cfg_attr( target_os = "android" , ignore) ] // Android used in CI has a broken dlmalloc
1699
1698
fn test_try_with_capacity ( ) {
1700
1699
let mut vec: Vec < u32 > = Vec :: try_with_capacity ( 5 ) . unwrap ( ) ;
1701
1700
assert_eq ! ( 0 , vec. len( ) ) ;
@@ -1707,7 +1706,6 @@ fn test_try_with_capacity() {
1707
1706
1708
1707
#[ test]
1709
1708
#[ cfg_attr( miri, ignore) ] // Miri does not support signalling OOM
1710
- #[ cfg_attr( target_os = "android" , ignore) ] // Android used in CI has a broken dlmalloc
1711
1709
fn test_try_reserve ( ) {
1712
1710
// These are the interesting cases:
1713
1711
// * exactly isize::MAX should never trigger a CapacityOverflow (can be OOM)
@@ -1803,7 +1801,6 @@ fn test_try_reserve() {
1803
1801
1804
1802
#[ test]
1805
1803
#[ cfg_attr( miri, ignore) ] // Miri does not support signalling OOM
1806
- #[ cfg_attr( target_os = "android" , ignore) ] // Android used in CI has a broken dlmalloc
1807
1804
fn test_try_reserve_exact ( ) {
1808
1805
// This is exactly the same as test_try_reserve with the method changed.
1809
1806
// See that test for comments.
Original file line number Diff line number Diff line change @@ -1185,7 +1185,6 @@ fn test_reserve_exact_2() {
1185
1185
1186
1186
#[ test]
1187
1187
#[ cfg_attr( miri, ignore) ] // Miri does not support signalling OOM
1188
- #[ cfg_attr( target_os = "android" , ignore) ] // Android used in CI has a broken dlmalloc
1189
1188
fn test_try_with_capacity ( ) {
1190
1189
let vec: VecDeque < u32 > = VecDeque :: try_with_capacity ( 5 ) . unwrap ( ) ;
1191
1190
assert_eq ! ( 0 , vec. len( ) ) ;
@@ -1196,7 +1195,6 @@ fn test_try_with_capacity() {
1196
1195
1197
1196
#[ test]
1198
1197
#[ cfg_attr( miri, ignore) ] // Miri does not support signalling OOM
1199
- #[ cfg_attr( target_os = "android" , ignore) ] // Android used in CI has a broken dlmalloc
1200
1198
fn test_try_reserve ( ) {
1201
1199
// These are the interesting cases:
1202
1200
// * exactly isize::MAX should never trigger a CapacityOverflow (can be OOM)
@@ -1292,7 +1290,6 @@ fn test_try_reserve() {
1292
1290
1293
1291
#[ test]
1294
1292
#[ cfg_attr( miri, ignore) ] // Miri does not support signalling OOM
1295
- #[ cfg_attr( target_os = "android" , ignore) ] // Android used in CI has a broken dlmalloc
1296
1293
fn test_try_reserve_exact ( ) {
1297
1294
// This is exactly the same as test_try_reserve with the method changed.
1298
1295
// See that test for comments.
Original file line number Diff line number Diff line change 1
- //! This tests the `Integer::{ilog,log2,log10}` methods. These tests are in a
2
- //! separate file because there's both a large number of them, and not all tests
3
- //! can be run on Android. This is because in Android `ilog2` uses an imprecise
4
- //! approximation:https://github.com/rust-lang/rust/blob/4825e12fc9c79954aa0fe18f5521efa6c19c7539/src/libstd/sys/unix/android.rs#L27-L53
1
+ //! Tests for the `Integer::{ilog,log2,log10}` methods.
5
2
6
3
#[ test]
7
4
fn checked_ilog ( ) {
@@ -77,10 +74,8 @@ fn checked_ilog2() {
77
74
}
78
75
}
79
76
80
- // Validate cases that fail on Android's imprecise float ilog2 implementation.
81
77
#[ test]
82
- #[ cfg( not( target_os = "android" ) ) ]
83
- fn checked_ilog2_not_android ( ) {
78
+ fn checked_ilog2 ( ) {
84
79
assert_eq ! ( 8192u16 . checked_ilog2( ) , Some ( ( 8192f32 ) . log2( ) as u32 ) ) ;
85
80
assert_eq ! ( 32768u16 . checked_ilog2( ) , Some ( ( 32768f32 ) . log2( ) as u32 ) ) ;
86
81
assert_eq ! ( 8192i16 . checked_ilog2( ) , Some ( ( 8192f32 ) . log2( ) as u32 ) ) ;
You can’t perform that action at this time.
0 commit comments