From: Ivan Maidanski Date: Mon, 24 Oct 2016 22:07:49 +0000 (+0300) Subject: Add dd_acquire_read case to test_atomic X-Git-Tag: v7.6.0~173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d36197cd080ac6fea8e5feb1ef880cf6fe358ea3;p=platform%2Fupstream%2Flibatomic_ops.git Add dd_acquire_read case to test_atomic * 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(). --- diff --git a/tests/Makefile.am b/tests/Makefile.am index c8812bb..4cd04de 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 $@` diff --git a/tests/test_atomic.c b/tests/test_atomic.c index b063a92..80818a4 100644 --- a/tests/test_atomic.c +++ b/tests/test_atomic.c @@ -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