tests: Fix build on FreeBSD
authorEd Maste <emaste@freebsd.org>
Sat, 17 Aug 2013 20:40:11 +0000 (16:40 -0400)
committerBen Pfaff <blp@nicira.com>
Sat, 17 Aug 2013 22:19:05 +0000 (15:19 -0700)
commit22eb07cd9b1200678d25ca4ffe43fd3b670cc42e
tree8bc9af45fae90a723b93c013be91e2565f2bef88
parenta0014912b714f41d34eb6a11ae838aec981491ab
tests: Fix build on FreeBSD

Avoid relying on a non-portable implementation detail for atomic_flag
tests.  Per the standard, the only way to obtain the value of the flag
is via the return value from atomic_flag_test_and_set.

Signed-off-by: Ed Maste <emaste@freebsd.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/test-atomic.c