Skip to content

Commit

Permalink
tests: Fix test_is_lock_free test on old rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 26, 2023
1 parent 5b4c827 commit 3a42238
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ fn test_is_lock_free() {
assert!(!AtomicU64::is_lock_free());
}
}
if cfg!(any(
if cfg!(portable_atomic_no_asm) && cfg!(not(portable_atomic_unstable_asm)) {
assert!(!AtomicI128::is_always_lock_free());
assert!(!AtomicI128::is_lock_free());
assert!(!AtomicU128::is_always_lock_free());
assert!(!AtomicU128::is_lock_free());
} else if cfg!(any(
target_arch = "aarch64",
all(
target_arch = "powerpc64",
Expand Down

0 comments on commit 3a42238

Please sign in to comment.