]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_codegen_cranelift/patches/0023-sysroot-Ignore-failing-tests.patch
f3cd7ee77e26e34586ac8cc146d0791f960c4520
[rustc.git] / compiler / rustc_codegen_cranelift / patches / 0023-sysroot-Ignore-failing-tests.patch
1 From dd82e95c9de212524e14fc60155de1ae40156dfc Mon Sep 17 00:00:00 2001
2 From: bjorn3 <bjorn3@users.noreply.github.com>
3 Date: Sun, 24 Nov 2019 15:34:06 +0100
4 Subject: [PATCH] [core] Ignore failing tests
5
6 ---
7 library/core/tests/iter.rs | 4 ++++
8 library/core/tests/num/bignum.rs | 10 ++++++++++
9 library/core/tests/num/mod.rs | 5 +++--
10 library/core/tests/time.rs | 1 +
11 4 files changed, 18 insertions(+), 2 deletions(-)
12
13 diff --git a/library/core/tests/array.rs b/library/core/tests/array.rs
14 index 4bc44e9..8e3c7a4 100644
15 --- a/library/core/tests/array.rs
16 +++ b/library/core/tests/array.rs
17 @@ -242,6 +242,7 @@ fn iterator_drops() {
18 assert_eq!(i.get(), 5);
19 }
20
21 +/*
22 // This test does not work on targets without panic=unwind support.
23 // To work around this problem, test is marked is should_panic, so it will
24 // be automagically skipped on unsuitable targets, such as
25 @@ -283,6 +284,7 @@ fn array_default_impl_avoids_leaks_on_panic() {
26 assert_eq!(COUNTER.load(Relaxed), 0);
27 panic!("test succeeded")
28 }
29 +*/
30
31 #[test]
32 fn empty_array_is_always_default() {
33 @@ -304,6 +304,7 @@ fn array_map() {
34 assert_eq!(b, [1, 2, 3]);
35 }
36
37 +/*
38 // See note on above test for why `should_panic` is used.
39 #[test]
40 #[should_panic(expected = "test succeeded")]
41 @@ -332,6 +333,7 @@ fn array_map_drop_safety() {
42 assert_eq!(DROPPED.load(Ordering::SeqCst), num_to_create);
43 panic!("test succeeded")
44 }
45 +*/
46
47 #[test]
48 fn cell_allows_array_cycle() {
49 diff --git a/library/core/tests/atomic.rs b/library/core/tests/atomic.rs
50 index 13b12db..96fe4b9 100644
51 --- a/library/core/tests/atomic.rs
52 +++ b/library/core/tests/atomic.rs
53 @@ -185,6 +185,7 @@ fn ptr_bitops() {
54 }
55
56 #[test]
57 +#[cfg_attr(target_arch = "s390x", ignore)] // s390x backend doesn't support stack alignment >8 bytes
58 #[cfg(any(not(target_arch = "arm"), target_os = "linux"))] // Missing intrinsic in compiler-builtins
59 fn ptr_bitops_tagging() {
60 #[repr(align(16))]
61 --
62 2.21.0 (Apple Git-122)