Skip to content

Commit f718378

Browse files
committed
Ignore libcore test that requires unwinding support
1 parent b4d9d8a commit f718378

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

patches/0023-core-Ignore-failing-tests.patch

+20
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@ Subject: [PATCH] [core] Ignore failing tests
1010
src/libcore/tests/time.rs | 1 +
1111
4 files changed, 18 insertions(+), 2 deletions(-)
1212

13+
diff --git a/src/libcore/tests/array.rs b/src/libcore/tests/array.rs
14+
index 4bc44e9..8e3c7a4 100644
15+
--- a/src/libcore/tests/array.rs
16+
+++ b/src/libcore/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() {
1333
diff --git a/src/libcore/tests/iter.rs b/src/libcore/tests/iter.rs
1434
index c9096b7..be37fcd 100644
1535
--- a/src/libcore/tests/iter.rs

0 commit comments

Comments
 (0)