Add dd_acquire_read case to test_atomic
authorIvan Maidanski <ivmai@mail.ru>
Mon, 24 Oct 2016 22:07:49 +0000 (01:07 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 24 Oct 2016 22:07:49 +0000 (01:07 +0300)
* tests/Makefile.am (test_atomic_include.h): Add "_dd_acquire_read"
test generation.
* tests/test_atomic.c [!AO_NO_PTHREADS || !AO_USE_PTHREAD_DEFS] (main):
Call test_atomic_dd_acquire_read().

tests/Makefile.am
tests/test_atomic.c

index c8812bb..4cd04de 100644 (file)
@@ -44,6 +44,7 @@ test_atomic_include.h: test_atomic_include.template
        sed -e s:XX:_full:g $? >> $@
        sed -e s:XX:_release_write:g $? >> $@
        sed -e s:XX:_acquire_read:g $? >> $@
+       sed -e s:XX:_dd_acquire_read:g $? >> $@
 
 list_atomic.c: list_atomic.template
        mkdir -p `dirname $@`
index b063a92..80818a4 100644 (file)
@@ -187,6 +187,7 @@ int main(void)
   test_atomic_full();
   test_atomic_release_write();
   test_atomic_acquire_read();
+  test_atomic_dd_acquire_read();
 # if defined(AO_HAVE_fetch_and_add1) && defined(AO_HAVE_fetch_and_sub1)
     run_parallel(4, add1sub1_thr, add1sub1_test, "add1/sub1");
 # endif