summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_codegen_gcc/patches/0023-core-Ignore-failing-tests.patch
blob: ee5ba449fb8e6bb0ee310eea54ac65a01ec8842a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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

---
 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 +
 4 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/library/core/tests/array.rs b/library/core/tests/array.rs
index 4bc44e9..8e3c7a4 100644
--- a/library/core/tests/array.rs
+++ b/library/core/tests/array.rs
@@ -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() {
@@ -304,6 +304,7 @@ fn array_map() {
     assert_eq!(b, [1, 2, 3]);
 }
 
+/*
 // See note on above test for why `should_panic` is used.
 #[test]
 #[should_panic(expected = "test succeeded")]
@@ -332,6 +333,7 @@ fn array_map_drop_safety() {
     assert_eq!(DROPPED.load(Ordering::SeqCst), num_to_create);
     panic!("test succeeded")
 }
+*/
 
 #[test]
 fn cell_allows_array_cycle() {
-- 2.21.0 (Apple Git-122)