Skip to content

Commit 52d9fa8

Browse files
committed
enabled too many tests
1 parent 4888b1f commit 52d9fa8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/liballoc/tests/binary_heap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ fn assert_covariance() {
282282
//
283283
// Destructors must be called exactly once per element.
284284
#[test]
285-
#[cfg(not(miri))] // Miri does not support entropy
285+
#[cfg(not(miri))] // Miri does not support panics nor entropy
286286
fn panic_safe() {
287287
static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);
288288

src/liballoc/tests/slice.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,7 @@ fn test_box_slice_clone() {
13971397
#[test]
13981398
#[allow(unused_must_use)] // here, we care about the side effects of `.clone()`
13991399
#[cfg_attr(target_os = "emscripten", ignore)]
1400+
#[cfg(not(miri))] // Miri does not support threads nor entropy
14001401
fn test_box_slice_clone_panics() {
14011402
use std::sync::Arc;
14021403
use std::sync::atomic::{AtomicUsize, Ordering};
@@ -1588,6 +1589,7 @@ thread_local!(static SILENCE_PANIC: Cell<bool> = Cell::new(false));
15881589

15891590
#[test]
15901591
#[cfg_attr(target_os = "emscripten", ignore)] // no threads
1592+
#[cfg(not(miri))] // Miri does not support threads nor entropy
15911593
fn panic_safe() {
15921594
let prev = panic::take_hook();
15931595
panic::set_hook(Box::new(move |info| {

0 commit comments

Comments
 (0)