Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 24 of 24) sorted by relevance

/bionic/tests/
Dstdatomic_test.cpp110 int expected; in TEST() local
113 expected = 123; in TEST()
114 ASSERT_TRUE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
115 ASSERT_FALSE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
116 ASSERT_EQ(456, expected); in TEST()
119 expected = 123; in TEST()
120 …ASSERT_TRUE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, memo… in TEST()
121 …ASSERT_FALSE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, mem… in TEST()
122 ASSERT_EQ(456, expected); in TEST()
125 expected = 123; in TEST()
[all …]
Dmath_tan_test.cpp23 double expected; member
5198 …EXPECT_DOUBLE_EQ(g_tan_intel_data[i].expected, tan(g_tan_intel_data[i].call_data)) << "Failed on e… in TEST()
Dmath_sinf_test.cpp23 float expected; member
4390 …EXPECT_FLOAT_EQ(g_sinf_intel_data[i].expected, sinf(g_sinf_intel_data[i].call_data)) << "Failed on… in TEST()
Dmath_sin_test.cpp23 double expected; member
5790 …EXPECT_DOUBLE_EQ(g_sin_intel_data[i].expected, sin(g_sin_intel_data[i].call_data)) << "Failed on e… in TEST()
Dmath_cosf_test.cpp23 float expected; member
4350 …EXPECT_FLOAT_EQ(g_cosf_intel_data[i].expected, cosf(g_cosf_intel_data[i].call_data)) << "Failed on… in TEST()
Dmath_cos_test.cpp23 double expected; member
5638 …EXPECT_DOUBLE_EQ(g_cos_intel_data[i].expected, cos(g_cos_intel_data[i].call_data)) << "Failed on e… in TEST()
Dmath_tanf_test.cpp23 float expected; member
4454 …EXPECT_FLOAT_EQ(g_tanf_intel_data[i].expected, tanf(g_tanf_intel_data[i].call_data)) << "Failed on… in TEST()
Dmath_log_test.cpp23 double expected; member
1670 …EXPECT_DOUBLE_EQ(g_log_intel_data[i].expected, log(g_log_intel_data[i].call_data)) << "Failed on e… in TEST()
Dmath_logf_test.cpp23 float expected; member
1322 …EXPECT_FLOAT_EQ(g_logf_intel_data[i].expected, logf(g_logf_intel_data[i].call_data)) << "Failed on… in TEST()
Dsys_epoll_test.cpp50 const uint64_t expected = 0x123456789abcdef0; in TEST() local
55 ev.data.u64 = expected; in TEST()
64 ASSERT_EQ(expected, events[0].data.u64); in TEST()
Dmath_exp_test.cpp23 double expected; member
1970 …EXPECT_DOUBLE_EQ(g_exp_intel_data[i].expected, exp(g_exp_intel_data[i].call_data)) << "Failed on e… in TEST()
Dmath_expf_test.cpp23 float expected; member
1434 …EXPECT_FLOAT_EQ(g_expf_intel_data[i].expected, expf(g_expf_intel_data[i].call_data)) << "Failed on… in TEST()
Dsearch_test.cpp158 int expected = 0; in TEST() local
160 ASSERT_EQ(expected, q->i); in TEST()
161 ++expected; in TEST()
163 ASSERT_EQ(3, expected); in TEST()
166 --expected; in TEST()
167 ASSERT_EQ(expected, q->i); in TEST()
169 ASSERT_EQ(0, expected); in TEST()
Dsstream_test.cpp26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { in CheckOverflow() argument
33 ASSERT_EQ(expected, result) << value; in CheckOverflow()
Dstring_test.cpp396 char* expected; in TEST() local
399 expected = state.ptr1 + state.len[i] - 1; in TEST()
401 expected = NULL; in TEST()
405 expected = state.ptr1 + pos; in TEST()
408 ASSERT_TRUE(strchr(state.ptr1, seek_char) == expected); in TEST()
426 int expected; in TEST() local
429 expected = 0; in TEST()
434 expected = 1; in TEST()
438 expected = 0; in TEST()
440 expected = -1; in TEST()
[all …]
Dfcntl_test.cpp199 char expected[256]; in TEST() local
202 ASSERT_TRUE(fgets(expected, sizeof(expected), expected_fp) != NULL); in TEST()
237 ASSERT_STREQ(expected, buf1); in TEST()
238 ASSERT_STREQ(expected, buf2); in TEST()
Dmath_pow_test.cpp23 double expected; member
3295 …EXPECT_DOUBLE_EQ(g_pow_intel_data[i].expected, pow(g_pow_intel_data[i].x_call_data, g_pow_intel_da… in TEST()
Dmath_powf_test.cpp23 float expected; member
2783 …EXPECT_FLOAT_EQ(g_powf_intel_data[i].expected, powf(g_powf_intel_data[i].x_call_data, g_powf_intel… in TEST()
Dpthread_test.cpp75 void* expected = reinterpret_cast<void*>(1234); in TEST() local
78 ASSERT_EQ(0, pthread_setspecific(key, expected)); in TEST()
79 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
84 ASSERT_EQ(EINVAL, pthread_setspecific(key, expected)); in TEST()
88 void* expected = reinterpret_cast<void*>(1234); in TEST() local
91 ASSERT_EQ(0, pthread_setspecific(key, expected)); in TEST()
92 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
99 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
108 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
Dstdio_test.cpp105 const char* expected[] = { "This ", " ", "is ", "a ", "test" }; in TEST() local
108 …ASSERT_EQ(getdelim(&word_read, &allocated_length, ' ', fp), static_cast<int>(strlen(expected[i]))); in TEST()
109 ASSERT_GE(allocated_length, strlen(expected[i])); in TEST()
110 ASSERT_STREQ(word_read, expected[i]); in TEST()
/bionic/libc/include/
Dstdatomic.h397 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
399 __c11_atomic_compare_exchange_strong(object, expected, desired, \
401 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument
403 __c11_atomic_compare_exchange_weak(object, expected, desired, \
422 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
424 __atomic_compare_exchange_n(&(object)->__val, expected, \
426 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument
428 __atomic_compare_exchange_n(&(object)->__val, expected, \
449 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
451 __typeof__(expected) __ep = (expected); \
[all …]
/bionic/libc/kernel/uapi/linux/
Datm_zatm.h44 struct timeval expected; member
Dbtrfs.h202 __u64 expected; member
/bionic/libc/kernel/tools/
Dcpp.py1006 def test_cpp_expr(expr, expected): argument
1009 if s1 != expected:
1010 print "[FAIL]: expression '%s' generates '%s', should be '%s'" % (expr, s1, expected)
1014 def test_cpp_expr_optim(expr, expected, macros={}): argument
1018 if s1 != expected:
1019 …mized expression '%s' generates '%s' with macros %s, should be '%s'" % (expr, s1, macros, expected)
1023 def test_cpp_expr_source(expr, expected): argument
1026 if s1 != expected:
1027 print "[FAIL]: source expression '%s' generates '%s', should be '%s'" % (expr, s1, expected)
1648 def test_block_parsing(lines,expected): argument
[all …]