+static void
+test_atomic_flag(void)
+{
+ atomic_flag flag = ATOMIC_FLAG_INIT;
+ ovs_assert(atomic_flag_test_and_set(&flag) == false);
+ ovs_assert(atomic_flag_test_and_set(&flag) == true);
+ atomic_flag_clear(&flag);
+ ovs_assert(atomic_flag_test_and_set(&flag) == false);
+}
+
+
+static void
+test_atomic_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED)