2019-11-24 08:44:39 -06:00
|
|
|
|
From f6befc4bb51d84f5f1cf35938a168c953d421350 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: bjorn3 <bjorn3@users.noreply.github.com>
|
|
|
|
|
Date: Sun, 24 Nov 2019 15:10:23 +0100
|
|
|
|
|
Subject: [PATCH] [core] Disable not compiling tests
|
|
|
|
|
|
|
|
|
|
---
|
2020-07-30 07:58:27 -05:00
|
|
|
|
library/core/tests/Cargo.toml | 8 ++++++++
|
|
|
|
|
library/core/tests/num/flt2dec/mod.rs | 1 -
|
|
|
|
|
library/core/tests/num/int_macros.rs | 2 ++
|
|
|
|
|
library/core/tests/num/uint_macros.rs | 2 ++
|
|
|
|
|
library/core/tests/ptr.rs | 2 ++
|
|
|
|
|
library/core/tests/slice.rs | 2 ++
|
2019-11-24 08:44:39 -06:00
|
|
|
|
6 files changed, 16 insertions(+), 1 deletion(-)
|
2020-07-30 07:58:27 -05:00
|
|
|
|
create mode 100644 library/core/tests/Cargo.toml
|
2019-11-24 08:44:39 -06:00
|
|
|
|
|
2020-07-30 07:58:27 -05:00
|
|
|
|
diff --git a/library/core/tests/Cargo.toml b/library/core/tests/Cargo.toml
|
2019-11-24 08:44:39 -06:00
|
|
|
|
new file mode 100644
|
|
|
|
|
index 0000000..46fd999
|
|
|
|
|
--- /dev/null
|
2020-07-30 07:58:27 -05:00
|
|
|
|
+++ b/library/core/tests/Cargo.toml
|
2019-11-24 08:44:39 -06:00
|
|
|
|
@@ -0,0 +1,8 @@
|
|
|
|
|
+[package]
|
|
|
|
|
+name = "core"
|
|
|
|
|
+version = "0.0.0"
|
2022-02-23 04:49:34 -06:00
|
|
|
|
+edition = "2021"
|
2019-11-24 08:44:39 -06:00
|
|
|
|
+
|
|
|
|
|
+[lib]
|
|
|
|
|
+name = "coretests"
|
|
|
|
|
+path = "lib.rs"
|
2020-07-30 07:58:27 -05:00
|
|
|
|
diff --git a/library/core/tests/num/flt2dec/mod.rs b/library/core/tests/num/flt2dec/mod.rs
|
2019-11-24 08:44:39 -06:00
|
|
|
|
index a35897e..f0bf645 100644
|
2020-07-30 07:58:27 -05:00
|
|
|
|
--- a/library/core/tests/num/flt2dec/mod.rs
|
|
|
|
|
+++ b/library/core/tests/num/flt2dec/mod.rs
|
2019-11-24 08:44:39 -06:00
|
|
|
|
@@ -13,7 +13,6 @@ mod strategy {
|
|
|
|
|
mod dragon;
|
|
|
|
|
mod grisu;
|
|
|
|
|
}
|
|
|
|
|
-mod random;
|
|
|
|
|
|
|
|
|
|
pub fn decode_finite<T: DecodableFloat>(v: T) -> Decoded {
|
|
|
|
|
match decode(v).1 {
|
2020-07-30 07:58:27 -05:00
|
|
|
|
diff --git a/library/core/tests/ptr.rs b/library/core/tests/ptr.rs
|
2019-11-24 08:44:39 -06:00
|
|
|
|
index 1a6be3a..42dbd59 100644
|
2020-07-30 07:58:27 -05:00
|
|
|
|
--- a/library/core/tests/ptr.rs
|
|
|
|
|
+++ b/library/core/tests/ptr.rs
|
2019-11-24 08:44:39 -06:00
|
|
|
|
@@ -250,6 +250,7 @@ fn test_unsized_nonnull() {
|
2022-02-23 04:49:34 -06:00
|
|
|
|
};
|
2019-11-24 08:44:39 -06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+/*
|
|
|
|
|
#[test]
|
|
|
|
|
#[allow(warnings)]
|
|
|
|
|
// Have a symbol for the test below. It doesn’t need to be an actual variadic function, match the
|
2021-08-06 09:26:56 -05:00
|
|
|
|
@@ -277,6 +277,7 @@ pub fn test_variadic_fnptr() {
|
|
|
|
|
let mut s = SipHasher::new();
|
|
|
|
|
assert_eq!(p.hash(&mut s), q.hash(&mut s));
|
2019-11-24 08:44:39 -06:00
|
|
|
|
}
|
|
|
|
|
+*/
|
|
|
|
|
|
|
|
|
|
#[test]
|
2021-08-06 09:26:56 -05:00
|
|
|
|
fn write_unaligned_drop() {
|
2020-07-30 07:58:27 -05:00
|
|
|
|
diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs
|
2019-11-24 08:44:39 -06:00
|
|
|
|
index 6609bc3..241b497 100644
|
2020-07-30 07:58:27 -05:00
|
|
|
|
--- a/library/core/tests/slice.rs
|
|
|
|
|
+++ b/library/core/tests/slice.rs
|
2019-11-24 08:44:39 -06:00
|
|
|
|
@@ -1209,6 +1209,7 @@ fn brute_force_rotate_test_1() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+/*
|
|
|
|
|
#[test]
|
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
|
|
|
fn sort_unstable() {
|
|
|
|
|
@@ -1394,6 +1395,7 @@ fn partition_at_index() {
|
2020-10-15 03:34:13 -05:00
|
|
|
|
v.select_nth_unstable(0);
|
2019-11-24 08:44:39 -06:00
|
|
|
|
assert!(v == [0xDEADBEEF]);
|
|
|
|
|
}
|
|
|
|
|
+*/
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
#[should_panic(expected = "index 0 greater than length of slice")]
|
2020-06-20 06:23:31 -05:00
|
|
|
|
--
|
2019-11-24 08:44:39 -06:00
|
|
|
|
2.21.0 (Apple Git-122)
|