summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2016-10-25 01:07:49 +0300
committerIvan Maidanski <ivmai@mail.ru>2016-10-25 01:07:49 +0300
commitd36197cd080ac6fea8e5feb1ef880cf6fe358ea3 (patch)
tree4abcfa24e76afe65e814c92690e37f1b374ad6b1 /tests
parent0c5a5ec2526146c8587e0a7b84baae2542724d54 (diff)
downloadlibatomic_ops-d36197cd080ac6fea8e5feb1ef880cf6fe358ea3.tar.gz
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().
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/test_atomic.c1
2 files changed, 2 insertions, 0 deletions
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