about summary refs log tree commit diff
path: root/src/liballoc/sync/tests.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-12-07 12:42:19 +0100
committerRalf Jung <post@ralfj.de>2019-12-07 12:42:19 +0100
commitca2ffe3a8030e0fb6593cb6905a371441a10a4e0 (patch)
tree45b55f5202af5b3582b7f621ac937e1cb8d44dfa /src/liballoc/sync/tests.rs
parent7ba1232b5ea8f6ab011efe2ce3fb97d955342fdb (diff)
downloadrust-ca2ffe3a8030e0fb6593cb6905a371441a10a4e0.tar.gz
rust-ca2ffe3a8030e0fb6593cb6905a371441a10a4e0.zip
liballoc: ignore tests in Miri instead of removing them entirely
Diffstat (limited to 'src/liballoc/sync/tests.rs')
-rw-r--r--src/liballoc/sync/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/sync/tests.rs b/src/liballoc/sync/tests.rs
index 9220f5e0333..9ddba495b7e 100644
--- a/src/liballoc/sync/tests.rs
+++ b/src/liballoc/sync/tests.rs
@@ -29,7 +29,7 @@ impl Drop for Canary {
 
 #[test]
 #[cfg_attr(target_os = "emscripten", ignore)]
-#[cfg(not(miri))] // Miri does not support threads
+#[cfg_attr(miri, ignore)] // Miri does not support threads
 fn manually_share_arc() {
     let v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
     let arc_v = Arc::new(v);
@@ -334,7 +334,7 @@ fn test_ptr_eq() {
 
 #[test]
 #[cfg_attr(target_os = "emscripten", ignore)]
-#[cfg(not(miri))] // Miri does not support threads
+#[cfg_attr(miri, ignore)] // Miri does not support threads
 fn test_weak_count_locked() {
     let mut a = Arc::new(atomic::AtomicBool::new(false));
     let a2 = a.clone();