tests/test-atomic: Cover more of the atomic API.
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 5 Aug 2014 20:51:19 +0000 (13:51 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 5 Aug 2014 20:51:19 +0000 (13:51 -0700)
commiteba451dc4ac0aaa7c614b119018013e0e1cfd237
treed93f05b78357b93cdfecb2bd752f8a36b434c437
parent860f83f3f290aabddc033548848c953dc7b8dd0f
tests/test-atomic: Cover more of the atomic API.

This adds tests using all of the defined memory orders, as well as
simple two-thread test cases for the acquire-release and
consume-release patterns.

These new tests helped uncover a bug in the ovs-atomic-gcc4+
implementation, which was fixed in a preceding patch.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
tests/test-atomic.c