Skip to content

Commit 959becd

Browse files
committed
Updates to CI scripts
1 parent 98c35f7 commit 959becd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_atomic.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace
7676

7777
CHECK_EQUAL(compare.is_lock_free(), test.is_lock_free());
7878

79-
#if defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG)
79+
#if ETL_NOT_USING_STL && (defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG))
8080
CHECK_TRUE(etl::atomic<int>::is_always_lock_free);
8181
CHECK_TRUE(test.is_always_lock_free);
8282
#endif
@@ -90,20 +90,21 @@ namespace
9090

9191
CHECK_EQUAL(compare.is_lock_free(), test.is_lock_free());
9292

93-
#if defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG)
93+
#if ETL_NOT_USING_STL && (defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG))
9494
CHECK_TRUE(etl::atomic<int*>::is_always_lock_free);
9595
CHECK_TRUE(test.is_always_lock_free);
9696
#endif
9797
}
9898

99-
#if defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG)
99+
#if ETL_NOT_USING_STL && (defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_GCC) || defined(ETL_COMPILER_CLANG))
100100
//*************************************************************************
101101
TEST(test_atomic_is_always_lock_free)
102102
{
103103
struct S
104104
{
105105
int a;
106106
int b;
107+
int c;
107108
};
108109

109110
CHECK_TRUE(etl::atomic<int>::is_always_lock_free);

0 commit comments

Comments
 (0)