]> granicus.if.org Git - gc/commit
Add test_atomic_ops to perform minimal testing of used atomic primitives
authorIvan Maidanski <ivmai@mail.ru>
Wed, 14 Jun 2017 09:16:00 +0000 (12:16 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 14 Jun 2017 09:26:12 +0000 (12:26 +0300)
commit066e0ca4548c4f03662a3b86736abe6fdb75b2f9
treee60830629463e2b5463a50189a35a5daaee576e8
parent0392988291de966e12c1001bc71320aa6dbc7c6f
Add test_atomic_ops to perform minimal testing of used atomic primitives

The main purpose of test_atomic_ops is to be able to check whether
it is safe to use compiler atomic intrinsics (enabled by defining
GC_BUILTIN_ATOMIC macro).

* tests/test_atomic_ops.c: New file.
* tests/tests.am [THREADS] (TESTS, check_PROGRAMS): Add
test_atomic_ops.
* tests/tests.am [THREADS] (test_atomic_ops_SOURCES,
test_atomic_ops_LDADD): New variable.
* tests/tests.am (check-without-test-driver): Run test_atomic_ops (if
available).
tests/test_atomic_ops.c [new file with mode: 0644]
tests/tests.am