projects
/
platform
/
upstream
/
libatomic_ops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a405e78
)
Fix test_atomic_include for the case of missing CAS primitive
author
Ivan Maidanski
<ivmai@mail.ru>
Mon, 24 Oct 2011 11:45:10 +0000
(15:45 +0400)
committer
Ivan Maidanski
<ivmai@mail.ru>
Mon, 24 Oct 2011 11:45:10 +0000
(15:45 +0400)
* tests/test_atomic_include.template (test_atomicXX): Add action for
the missing AO_compare_and_swap primitive.
tests/test_atomic_include.template
patch
|
blob
|
history
diff --git
a/tests/test_atomic_include.template
b/tests/test_atomic_include.template
index
7d594fa
..
9fec3f9
100644
(file)
--- a/
tests/test_atomic_include.template
+++ b/
tests/test_atomic_include.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);