Skip to content

Commit

Permalink
Enable the tests on Arm Linux too
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Feb 17, 2021
1 parent dfdadad commit 4fa9e08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/core/tests/atomic.rs
Expand Up @@ -60,7 +60,7 @@ fn uint_xor() {
}

#[test]
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
#[cfg(any(not(target_arch = "arm"), target_os = "linux"))] // Missing intrinsic in compiler-builtins
fn uint_min() {
let x = AtomicUsize::new(0xf731);
assert_eq!(x.fetch_min(0x137f, SeqCst), 0xf731);
Expand All @@ -70,7 +70,7 @@ fn uint_min() {
}

#[test]
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
#[cfg(any(not(target_arch = "arm"), target_os = "linux"))] // Missing intrinsic in compiler-builtins
fn uint_max() {
let x = AtomicUsize::new(0x137f);
assert_eq!(x.fetch_max(0xf731, SeqCst), 0x137f);
Expand Down Expand Up @@ -108,7 +108,7 @@ fn int_xor() {
}

#[test]
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
#[cfg(any(not(target_arch = "arm"), target_os = "linux"))] // Missing intrinsic in compiler-builtins
fn int_min() {
let x = AtomicIsize::new(0xf731);
assert_eq!(x.fetch_min(0x137f, SeqCst), 0xf731);
Expand All @@ -118,7 +118,7 @@ fn int_min() {
}

#[test]
#[cfg(not(target_arch = "arm"))] // Missing intrinsic in compiler-builtins
#[cfg(any(not(target_arch = "arm"), target_os = "linux"))] // Missing intrinsic in compiler-builtins
fn int_max() {
let x = AtomicIsize::new(0x137f);
assert_eq!(x.fetch_max(0xf731, SeqCst), 0x137f);
Expand Down

0 comments on commit 4fa9e08

Please sign in to comment.