Skip to content

Commit

Permalink
Updates to CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed Feb 1, 2025
1 parent 0c24342 commit 04b3892
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions test/test_atomic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

//*************************************************************************
Expand All @@ -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))
//*************************************************************************
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))
// 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

//*************************************************************************
TEST(test_atomic_integer_load)
Expand Down

0 comments on commit 04b3892

Please sign in to comment.