summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-10-24 15:45:10 +0400
committerIvan Maidanski <ivmai@mail.ru>2011-10-24 15:46:54 +0400
commitc85049c89ccd6782a93e9600f734b4cb4f572c24 (patch)
tree86341e11179ab67db0bf2e3655e7520010ccf8e3
parent0b4a74bfaf50cff7dcf8977e81caa399c7554ca9 (diff)
downloadlibatomic_ops-c85049c89ccd6782a93e9600f734b4cb4f572c24.tar.gz
Fix test_atomic_include for the case of missing CAS primitive
* tests/test_atomic_include.template (test_atomicXX): Add action for the missing AO_compare_and_swap primitive.
-rw-r--r--tests/test_atomic.template1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_atomic.template b/tests/test_atomic.template
index f80eac8..d367d1a 100644
--- a/tests/test_atomic.template
+++ b/tests/test_atomic.template
@@ -168,6 +168,7 @@ void test_atomicXX(void)
TA_assert(x == 42);
# else
MISSING(AO_compare_and_swap);
+ if (x == 13) x = 42;
# endif
# if defined(AO_HAVE_orXX)
AO_orXX(&x, 66);