diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-02-17 10:01:29 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-02-17 10:01:39 +0100 |
| commit | 4fa9e08e3dc10acdb322490d5ac24e937c0f43f5 (patch) | |
| tree | 61758f201dd9cbc86dabfd8100378b5a24940b9e | |
| parent | dfdadad228e0885d43ced8117978c77d6973f05e (diff) | |
| download | rust-4fa9e08e3dc10acdb322490d5ac24e937c0f43f5.tar.gz rust-4fa9e08e3dc10acdb322490d5ac24e937c0f43f5.zip | |
Enable the tests on Arm Linux too
| -rw-r--r-- | library/core/tests/atomic.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/core/tests/atomic.rs b/library/core/tests/atomic.rs index 901b752502d..b735957666f 100644 --- a/library/core/tests/atomic.rs +++ b/library/core/tests/atomic.rs @@ -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); @@ -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); @@ -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); @@ -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); |
