From 3a42238a1748db34e397df4d306259aeb907f5d7 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 27 Jul 2023 00:13:05 +0900 Subject: [PATCH] tests: Fix test_is_lock_free test on old rustc --- src/tests/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tests/mod.rs b/src/tests/mod.rs index d94fcf05..8bb4c405 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -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",