]> git.lizzy.rs Git - rust.git/blobdiff - patches/0023-core-Ignore-failing-tests.patch
Disable failing libcore test
[rust.git] / patches / 0023-core-Ignore-failing-tests.patch
index d5e46569260444bc54f2a7f69748c135e2777b35..b6b1e93bb6bf328c9b3f9010cf10696479d1c2c0 100644 (file)
@@ -28,16 +28,16 @@ index c9096b7..be37fcd 100644
  #[test]
 +#[ignore]
  fn test_range_size_hint() {
-     use core::usize::MAX as UMAX;
      assert_eq!((0..0usize).size_hint(), (0, Some(0)));
+     assert_eq!((0..100usize).size_hint(), (100, Some(100)));
 @@ -2210,6 +2212,7 @@ fn test_range_size_hint() {
  }
  
  #[test]
 +#[ignore]
  fn test_range_inclusive_size_hint() {
-     use core::usize::MAX as UMAX;
      assert_eq!((1..=0usize).size_hint(), (0, Some(0)));
+     assert_eq!((0..=0usize).size_hint(), (1, Some(1)));
 @@ -2305,6 +2308,7 @@ fn test_repeat_with_take_collect() {
  }
  
@@ -137,7 +137,7 @@ index a17c094..5bb11d2 100644
  #[test]
 +#[ignore]
  fn from_str_issue7588() {
-     let u : Option<u8> = u8::from_str_radix("1000", 10).ok();
+     let u: Option<u8> = u8::from_str_radix("1000", 10).ok();
      assert_eq!(u, None);
 @@ -613,11 +614,9 @@ test_impl_try_from_signed_to_unsigned_err! { test_try_i64u32, i64, u32 }
  test_impl_try_from_signed_to_unsigned_err! { test_try_i128u8, i128, u8 }
@@ -152,21 +152,21 @@ index a17c094..5bb11d2 100644
      cfg_block! {
          #[cfg(target_pointer_width = "16")] {
 @@ -640,6 +639,7 @@ macro_rules! test_float {
-     ($modname: ident, $fty: ty, $inf: expr, $neginf: expr, $nan: expr) => { mod $modname {
-         // FIXME(nagisa): these tests should test for sign of -0.0
-         #[test]
-+        #[ignore]
-         fn min() {
-             assert_eq!((0.0 as $fty).min(0.0), 0.0);
-             assert_eq!((-0.0 as $fty).min(-0.0), -0.0);
+         mod $modname {
+             // FIXME(nagisa): these tests should test for sign of -0.0
+             #[test]
++            #[ignore]
+             fn min() {
+                 assert_eq!((0.0 as $fty).min(0.0), 0.0);
+                 assert_eq!((-0.0 as $fty).min(-0.0), -0.0);
 @@ -662,6 +662,7 @@ macro_rules! test_float {
-             assert!(($nan as $fty).min($nan).is_nan());
-         }
-         #[test]
-+        #[ignore]
-         fn max() {
-             assert_eq!((0.0 as $fty).max(0.0), 0.0);
-             assert_eq!((-0.0 as $fty).max(-0.0), -0.0);
+                 assert!(($nan as $fty).min($nan).is_nan());
+             }
+             #[test]
++            #[ignore]
+             fn max() {
+                 assert_eq!((0.0 as $fty).max(0.0), 0.0);
+                 assert_eq!((-0.0 as $fty).max(-0.0), -0.0);
 diff --git a/src/libcore/tests/time.rs b/src/libcore/tests/time.rs
 index fac70c4..9107a02 100644
 --- a/src/libcore/tests/time.rs