rculfhash test: add options
[urcu.git] / tests / test_uatomic.c
index 37f95a6d849699f7756676a09f0fee78803f4054..692060bcdf175763e2290c6c207d7d66366928c9 100644 (file)
@@ -1,6 +1,6 @@
 #include <stdio.h>
 #include <assert.h>
-#include <urcu/uatomic_arch.h>
+#include <urcu/uatomic.h>
 
 struct testvals {
        unsigned char c;
@@ -41,6 +41,8 @@ do {                                          \
        v = uatomic_sub_return(ptr, 1);         \
        assert(v == 121);                       \
        assert(uatomic_read(ptr) == 121);       \
+       uatomic_and(ptr, 129);                  \
+       assert(uatomic_read(ptr) == 1);         \
 } while (0)
 
 int main(int argc, char **argv)
This page took 0.022945 seconds and 4 git commands to generate.