libstdc++: Improve tests for std::atomic_flag
authorJonathan Wakely <jwakely@redhat.com>
Fri, 12 Jun 2020 09:33:37 +0000 (10:33 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 12 Jun 2020 09:43:06 +0000 (10:43 +0100)
commite784f98027dbd5cdc46712751dcfba8278eb7fa9
tree5124843e810d60e637489c98ed22ba12998f2d4d
parent17412a74c531a21595311df5428f26552e82dfa8
libstdc++: Improve tests for std::atomic_flag

The tests for clear() and test_and_set() didn't cover all cases.

* testsuite/29_atomics/atomic_flag/clear/1.cc: Also test clear()
when the value is currently set.
* testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc:
Actually check the return value.
* testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc:
Likewise.
libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc
libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc
libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc