about summary refs log tree commit diff
path: root/src/liballoc/tests/btree
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-03-10 17:45:45 +0100
committerRalf Jung <post@ralfj.de>2019-03-10 17:47:42 +0100
commit4888b1fb99f1bf6a58bebaededdfbf4477383634 (patch)
tree979907d0e9278175267ccfc539fc9a54622eb36d /src/liballoc/tests/btree
parent913ad6d1f092c70049934ba538d342d295d35997 (diff)
downloadrust-4888b1fb99f1bf6a58bebaededdfbf4477383634.tar.gz
rust-4888b1fb99f1bf6a58bebaededdfbf4477383634.zip
we can now skip should_panic tests with the libtest harness
Diffstat (limited to 'src/liballoc/tests/btree')
-rw-r--r--src/liballoc/tests/btree/map.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/liballoc/tests/btree/map.rs b/src/liballoc/tests/btree/map.rs
index f14750089c9..844afe87076 100644
--- a/src/liballoc/tests/btree/map.rs
+++ b/src/liballoc/tests/btree/map.rs
@@ -226,7 +226,6 @@ fn test_range_equal_empty_cases() {
 
 #[test]
 #[should_panic]
-#[cfg(not(miri))] // Miri does not support panics
 fn test_range_equal_excluded() {
     let map: BTreeMap<_, _> = (0..5).map(|i| (i, i)).collect();
     map.range((Excluded(2), Excluded(2)));
@@ -234,7 +233,6 @@ fn test_range_equal_excluded() {
 
 #[test]
 #[should_panic]
-#[cfg(not(miri))] // Miri does not support panics
 fn test_range_backwards_1() {
     let map: BTreeMap<_, _> = (0..5).map(|i| (i, i)).collect();
     map.range((Included(3), Included(2)));
@@ -242,7 +240,6 @@ fn test_range_backwards_1() {
 
 #[test]
 #[should_panic]
-#[cfg(not(miri))] // Miri does not support panics
 fn test_range_backwards_2() {
     let map: BTreeMap<_, _> = (0..5).map(|i| (i, i)).collect();
     map.range((Included(3), Excluded(2)));
@@ -250,7 +247,6 @@ fn test_range_backwards_2() {
 
 #[test]
 #[should_panic]
-#[cfg(not(miri))] // Miri does not support panics
 fn test_range_backwards_3() {
     let map: BTreeMap<_, _> = (0..5).map(|i| (i, i)).collect();
     map.range((Excluded(3), Included(2)));
@@ -258,7 +254,6 @@ fn test_range_backwards_3() {
 
 #[test]
 #[should_panic]
-#[cfg(not(miri))] // Miri does not support panics
 fn test_range_backwards_4() {
     let map: BTreeMap<_, _> = (0..5).map(|i| (i, i)).collect();
     map.range((Excluded(3), Excluded(2)));