diff options
-rw-r--r-- | tests/stdatomic_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/stdatomic_test.cpp b/tests/stdatomic_test.cpp index d41bfa9..5e88c88 100644 --- a/tests/stdatomic_test.cpp +++ b/tests/stdatomic_test.cpp @@ -66,7 +66,12 @@ TEST(stdatomic, atomic_is_lock_free) { atomic_char small; atomic_intmax_t big; ASSERT_TRUE(atomic_is_lock_free(&small)); + // atomic_intmax_t(size = 64) is not lock free on mips32. +#if defined(__mips__) && !defined(__LP64__) + ASSERT_FALSE(atomic_is_lock_free(&big)); +#else ASSERT_TRUE(atomic_is_lock_free(&big)); +#endif } TEST(stdatomic, atomic_flag) { |