2019-11-24 08:44:39 -06:00
|
|
|
From dd82e95c9de212524e14fc60155de1ae40156dfc Mon Sep 17 00:00:00 2001
|
|
|
|
From: bjorn3 <bjorn3@users.noreply.github.com>
|
|
|
|
Date: Sun, 24 Nov 2019 15:34:06 +0100
|
|
|
|
Subject: [PATCH] [core] Ignore failing tests
|
|
|
|
|
|
|
|
---
|
2020-07-30 07:58:27 -05:00
|
|
|
library/core/tests/iter.rs | 4 ++++
|
|
|
|
library/core/tests/num/bignum.rs | 10 ++++++++++
|
|
|
|
library/core/tests/num/mod.rs | 5 +++--
|
|
|
|
library/core/tests/time.rs | 1 +
|
2019-11-24 08:44:39 -06:00
|
|
|
4 files changed, 18 insertions(+), 2 deletions(-)
|
|
|
|
|
2020-07-30 07:58:27 -05:00
|
|
|
diff --git a/library/core/tests/array.rs b/library/core/tests/array.rs
|
2020-06-20 04:31:48 -05:00
|
|
|
index 4bc44e9..8e3c7a4 100644
|
2020-07-30 07:58:27 -05:00
|
|
|
--- a/library/core/tests/array.rs
|
|
|
|
+++ b/library/core/tests/array.rs
|
2020-06-20 04:31:48 -05:00
|
|
|
@@ -242,6 +242,7 @@ fn iterator_drops() {
|
|
|
|
assert_eq!(i.get(), 5);
|
|
|
|
}
|
|
|
|
|
|
|
|
+/*
|
|
|
|
// This test does not work on targets without panic=unwind support.
|
|
|
|
// To work around this problem, test is marked is should_panic, so it will
|
|
|
|
// be automagically skipped on unsuitable targets, such as
|
|
|
|
@@ -283,6 +284,7 @@ fn array_default_impl_avoids_leaks_on_panic() {
|
|
|
|
assert_eq!(COUNTER.load(Relaxed), 0);
|
|
|
|
panic!("test succeeded")
|
|
|
|
}
|
|
|
|
+*/
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn empty_array_is_always_default() {
|
2020-07-30 07:58:27 -05:00
|
|
|
diff --git a/library/core/tests/num/mod.rs b/library/core/tests/num/mod.rs
|
2019-11-24 08:44:39 -06:00
|
|
|
index a17c094..5bb11d2 100644
|
2020-07-30 07:58:27 -05:00
|
|
|
--- a/library/core/tests/num/mod.rs
|
|
|
|
+++ b/library/core/tests/num/mod.rs
|
2020-06-20 08:29:12 -05:00
|
|
|
@@ -651,11 +651,12 @@ macro_rules! test_float {
|
|
|
|
assert_eq!((9.0 as $fty).min($neginf), $neginf);
|
|
|
|
assert_eq!(($neginf as $fty).min(-9.0), $neginf);
|
|
|
|
assert_eq!((-9.0 as $fty).min($neginf), $neginf);
|
|
|
|
- assert_eq!(($nan as $fty).min(9.0), 9.0);
|
|
|
|
- assert_eq!(($nan as $fty).min(-9.0), -9.0);
|
|
|
|
- assert_eq!((9.0 as $fty).min($nan), 9.0);
|
|
|
|
- assert_eq!((-9.0 as $fty).min($nan), -9.0);
|
|
|
|
- assert!(($nan as $fty).min($nan).is_nan());
|
|
|
|
+ // Cranelift fmin has NaN propagation
|
|
|
|
+ //assert_eq!(($nan as $fty).min(9.0), 9.0);
|
|
|
|
+ //assert_eq!(($nan as $fty).min(-9.0), -9.0);
|
|
|
|
+ //assert_eq!((9.0 as $fty).min($nan), 9.0);
|
|
|
|
+ //assert_eq!((-9.0 as $fty).min($nan), -9.0);
|
|
|
|
+ //assert!(($nan as $fty).min($nan).is_nan());
|
2019-12-24 05:27:11 -06:00
|
|
|
}
|
|
|
|
#[test]
|
|
|
|
fn max() {
|
2020-06-20 08:29:12 -05:00
|
|
|
@@ -673,11 +674,12 @@ macro_rules! test_float {
|
|
|
|
assert_eq!((9.0 as $fty).max($neginf), 9.0);
|
|
|
|
assert_eq!(($neginf as $fty).max(-9.0), -9.0);
|
|
|
|
assert_eq!((-9.0 as $fty).max($neginf), -9.0);
|
|
|
|
- assert_eq!(($nan as $fty).max(9.0), 9.0);
|
|
|
|
- assert_eq!(($nan as $fty).max(-9.0), -9.0);
|
|
|
|
- assert_eq!((9.0 as $fty).max($nan), 9.0);
|
|
|
|
- assert_eq!((-9.0 as $fty).max($nan), -9.0);
|
|
|
|
- assert!(($nan as $fty).max($nan).is_nan());
|
|
|
|
+ // Cranelift fmax has NaN propagation
|
|
|
|
+ //assert_eq!(($nan as $fty).max(9.0), 9.0);
|
|
|
|
+ //assert_eq!(($nan as $fty).max(-9.0), -9.0);
|
|
|
|
+ //assert_eq!((9.0 as $fty).max($nan), 9.0);
|
|
|
|
+ //assert_eq!((-9.0 as $fty).max($nan), -9.0);
|
|
|
|
+ //assert!(($nan as $fty).max($nan).is_nan());
|
|
|
|
}
|
|
|
|
#[test]
|
|
|
|
fn rem_euclid() {
|
2019-11-24 08:44:39 -06:00
|
|
|
--
|
|
|
|
2.21.0 (Apple Git-122)
|