From 0df7364cdf7adf2b9446395c01915d377a4155ec Mon Sep 17 00:00:00 2001 From: leocth Date: Sun, 26 Jun 2022 00:06:50 +0800 Subject: [PATCH] temporarily remove tests because I'm not sure if we need them --- library/core/tests/atomic.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/library/core/tests/atomic.rs b/library/core/tests/atomic.rs index 36d1929d5be46..7f8672f035417 100644 --- a/library/core/tests/atomic.rs +++ b/library/core/tests/atomic.rs @@ -30,18 +30,6 @@ fn bool_nand() { assert_eq!(a.fetch_nand(true, SeqCst), false); assert_eq!(a.load(SeqCst), true); } -#[test] -fn bool_not() { - let a = AtomicBool::new(false); - assert_eq!(a.fetch_not(SeqCst), false); - assert_eq!(a.load(SeqCst), true); - assert_eq!(a.fetch_not(SeqCst), true); - assert_eq!(a.load(SeqCst), false); - assert_eq!(a.fetch_not(SeqCst), false); - assert_eq!(a.load(SeqCst), true); - assert_eq!(a.fetch_not(SeqCst), true); - assert_eq!(a.load(SeqCst), false); -} #[test] fn uint_and() { @@ -170,8 +158,6 @@ fn atomic_access_bool() { assert_eq!(*ATOMIC.get_mut(), true); ATOMIC.fetch_xor(true, SeqCst); assert_eq!(*ATOMIC.get_mut(), false); - ATOMIC.fetch_not(SeqCst); - assert_eq!(*ATOMIC.get_mut(), true); } }