]> git.lizzy.rs Git - rust.git/commitdiff
enabled too many tests
authorRalf Jung <post@ralfj.de>
Sun, 10 Mar 2019 16:52:45 +0000 (17:52 +0100)
committerRalf Jung <post@ralfj.de>
Sun, 10 Mar 2019 17:20:23 +0000 (18:20 +0100)
src/liballoc/tests/binary_heap.rs
src/liballoc/tests/slice.rs

index a97a790f5a2d8d226f07447dda3b2be11a6135e2..0930f8dacd494e7e6619989f086eca2c3a5405e2 100644 (file)
@@ -282,7 +282,7 @@ fn drain<'new>(d: Drain<'static, &'static str>) -> Drain<'new, &'new str> {
 //
 // Destructors must be called exactly once per element.
 #[test]
-#[cfg(not(miri))] // Miri does not support entropy
+#[cfg(not(miri))] // Miri does not support panics nor entropy
 fn panic_safe() {
     static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);
 
index fb99c95fc68424f0d98eaa474f6a4f529e2d2982..b54c128a0249a59d7d00c77b5f2efcf2249027b7 100644 (file)
@@ -1397,6 +1397,7 @@ fn test_box_slice_clone() {
 #[test]
 #[allow(unused_must_use)] // here, we care about the side effects of `.clone()`
 #[cfg_attr(target_os = "emscripten", ignore)]
+#[cfg(not(miri))] // Miri does not support threads nor entropy
 fn test_box_slice_clone_panics() {
     use std::sync::Arc;
     use std::sync::atomic::{AtomicUsize, Ordering};
@@ -1588,6 +1589,7 @@ macro_rules! test {
 
 #[test]
 #[cfg_attr(target_os = "emscripten", ignore)] // no threads
+#[cfg(not(miri))] // Miri does not support threads nor entropy
 fn panic_safe() {
     let prev = panic::take_hook();
     panic::set_hook(Box::new(move |info| {