Lines Matching refs:expected
106 int expected; in TEST() local
109 expected = 123; in TEST()
110 ASSERT_TRUE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
111 ASSERT_FALSE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
112 ASSERT_EQ(456, expected); in TEST()
115 expected = 123; in TEST()
116 ASSERT_TRUE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
118 ASSERT_FALSE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
120 ASSERT_EQ(456, expected); in TEST()
123 expected = 123; in TEST()
128 ASSERT_EQ(expected, 123); in TEST()
129 } while(!atomic_compare_exchange_weak(&i, &expected, 456)); in TEST()
130 ASSERT_FALSE(atomic_compare_exchange_weak(&i, &expected, 456)); in TEST()
131 ASSERT_EQ(456, expected); in TEST()
134 expected = 123; in TEST()
139 ASSERT_EQ(expected, 123); in TEST()
140 } while(!atomic_compare_exchange_weak_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
142 ASSERT_FALSE(atomic_compare_exchange_weak_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
144 ASSERT_EQ(456, expected); in TEST()