Updates to CI scripts

This commit is contained in:
John Wellbelove 2025-02-01 19:18:34 +00:00
parent 0c2434239b
commit 04b3892509

View File

@ -76,10 +76,10 @@ namespace
CHECK_EQUAL(compare.is_lock_free(), test.is_lock_free());
#if ETL_NOT_USING_STL && (defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG))
CHECK_TRUE(etl::atomic<int>::is_always_lock_free);
CHECK_TRUE(test.is_always_lock_free);
#endif
//#if ETL_NOT_USING_STL && (defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG))
// CHECK_TRUE(etl::atomic<int>::is_always_lock_free);
// CHECK_TRUE(test.is_always_lock_free);
//#endif
}
//*************************************************************************
@ -90,28 +90,28 @@ namespace
CHECK_EQUAL(compare.is_lock_free(), test.is_lock_free());
#if ETL_NOT_USING_STL && (defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG))
CHECK_TRUE(etl::atomic<int*>::is_always_lock_free);
CHECK_TRUE(test.is_always_lock_free);
#endif
//#if ETL_NOT_USING_STL && (defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG))
// CHECK_TRUE(etl::atomic<int*>::is_always_lock_free);
// CHECK_TRUE(test.is_always_lock_free);
//#endif
}
#if ETL_NOT_USING_STL && (defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG))
//*************************************************************************
TEST(test_atomic_is_always_lock_free)
{
struct S
{
int a;
int b;
int c;
};
CHECK_TRUE(etl::atomic<int>::is_always_lock_free);
CHECK_TRUE(etl::atomic<int*>::is_always_lock_free);
CHECK_FALSE(etl::atomic<S>::is_always_lock_free);
}
#endif
//#if ETL_NOT_USING_STL && (defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG))
// //*************************************************************************
// TEST(test_atomic_is_always_lock_free)
// {
// struct S
// {
// int a;
// int b;
// int c;
// };
//
// CHECK_TRUE(etl::atomic<int>::is_always_lock_free);
// CHECK_TRUE(etl::atomic<int*>::is_always_lock_free);
// CHECK_FALSE(etl::atomic<S>::is_always_lock_free);
// }
//#endif
//*************************************************************************
TEST(test_atomic_integer_load)