Home
last modified time | relevance | path

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

/bionic/tests/
Dstdatomic_test.cpp112 int expected; in TEST() local
115 expected = 123; in TEST()
116 ASSERT_TRUE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
117 ASSERT_FALSE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
118 ASSERT_EQ(456, expected); in TEST()
121 expected = 123; in TEST()
122 …ASSERT_TRUE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, memo… in TEST()
123 …ASSERT_FALSE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, mem… in TEST()
124 ASSERT_EQ(456, expected); in TEST()
127 expected = 123; in TEST()
[all …]
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_data_test.h23 RT expected; member
29 int expected; member
35 RT expected; member
64 RT expected; member
119 T expected,
121 if (!isnan(expected) && !isnan(actual) && UlpDistance(expected, actual) <= ULP) {
128 snprintf(expected_str, sizeof(expected_str), "%a", expected);
145 data[i].expected, f(data[i].input)) << "Failed on element " << i;
156 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
169 … data[i].expected, f(data[i].input1, data[i].input2)) << "Failed on element " << i;
[all …]
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.cpp439 char* expected; in TEST() local
442 expected = state.ptr1 + state.len[i] - 1; in TEST()
444 expected = NULL; in TEST()
448 expected = state.ptr1 + pos; in TEST()
451 ASSERT_TRUE(strchr(state.ptr1, seek_char) == expected); in TEST()
467 int expected; in TEST() local
470 expected = 0; in TEST()
475 expected = 1; in TEST()
479 expected = 0; in TEST()
481 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()
Dsetjmp_test.cpp88 void AssertSigmaskEquals(const sigset_t& expected) { in AssertSigmaskEquals() argument
93 EXPECT_EQ(sigismember(&expected, i), sigismember(&actual, i)) << i; in AssertSigmaskEquals()
Dpthread_test.cpp119 void* expected = reinterpret_cast<void*>(1234); in TEST() local
122 ASSERT_EQ(0, pthread_setspecific(key, expected)); in TEST()
123 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
128 ASSERT_EQ(EINVAL, pthread_setspecific(key, expected)); in TEST()
132 void* expected = reinterpret_cast<void*>(1234); in TEST() local
135 ASSERT_EQ(0, pthread_setspecific(key, expected)); in TEST()
136 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
143 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
152 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
Dstdio_test.cpp107 const char* expected[] = { "This ", " ", "is ", "a ", "test" }; in TEST() local
110 …ASSERT_EQ(getdelim(&word_read, &allocated_length, ' ', fp), static_cast<int>(strlen(expected[i]))); in TEST()
111 ASSERT_GE(allocated_length, strlen(expected[i])); in TEST()
112 ASSERT_STREQ(expected[i], word_read); in TEST()
/bionic/libc/include/
Dstdatomic.h403 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
405 __c11_atomic_compare_exchange_strong(object, expected, desired, \
407 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument
409 __c11_atomic_compare_exchange_weak(object, expected, desired, \
428 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
430 __atomic_compare_exchange_n(&(object)->__val, expected, \
432 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument
434 __atomic_compare_exchange_n(&(object)->__val, expected, \
455 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
457 __typeof__(expected) __ep = (expected); \
[all …]
/bionic/libc/kernel/uapi/linux/
Datm_zatm.h44 struct timeval expected; member
Dbtrfs.h210 __u64 expected; member
/bionic/libc/kernel/tools/
Dcpp.py832 def test_cpp_expr(expr, expected): argument
835 if s1 != expected:
837 "'%s'" % (expr, s1, expected))
842 def test_cpp_expr_optim(expr, expected, macros=None): argument
848 if s1 != expected:
850 "macros %s, should be '%s'" % (expr, s1, macros, expected))
855 def test_cpp_expr_source(expr, expected): argument
858 if s1 != expected:
860 "be '%s'" % (expr, s1, expected))
1601 def test_block_parsing(lines, expected): argument
[all …]