Home
last modified time | relevance | path

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

/bionic/tests/
Dstdatomic_test.cpp109 int expected; in TEST() local
112 expected = 123; in TEST()
113 ASSERT_TRUE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
114 ASSERT_FALSE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
115 ASSERT_EQ(456, expected); in TEST()
118 expected = 123; in TEST()
119 ASSERT_TRUE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
121 ASSERT_FALSE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
123 ASSERT_EQ(456, expected); in TEST()
126 expected = 123; in TEST()
[all …]
Dlibgen_basename_test.cpp60 #define TestGnuBasename(in, expected) __TestGnuBasename(in, expected, __LINE__) argument
61 #define TestPosixBasename(in, expected) __TestPosixBasename(in, expected, __LINE__) argument
Dmath_data_test.h24 RT expected; member
30 int expected; member
36 long expected; member
42 long long expected; member
48 RT expected; member
77 RT expected; member
153 T expected,
155 if (!isnan(expected) && !isnan(actual) && UlpDistance(expected, actual) <= ULP) {
160 << "expected (" << std::hexfloat << expected << ") != actual (" << actual << ")";
173 data[i].expected, f(data[i].input)) << "Failed on element " << i;
[all …]
Dsys_epoll_test.cpp56 const uint64_t expected = 0x123456789abcdef0; in TEST() local
61 ev.data.u64 = expected; in TEST()
70 ASSERT_EQ(expected, events[0].data.u64); 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.cpp449 char* expected; in TEST() local
452 expected = state.ptr1 + state.len[i] - 1; in TEST()
454 expected = NULL; in TEST()
458 expected = state.ptr1 + pos; in TEST()
461 ASSERT_TRUE(strchr(state.ptr1, seek_char) == expected); in TEST()
484 int expected; in TEST() local
487 expected = 0; in TEST()
492 expected = 1; in TEST()
496 expected = 0; in TEST()
498 expected = -1; in TEST()
[all …]
Dfcntl_test.cpp208 char expected[256]; in TEST() local
211 ASSERT_TRUE(fgets(expected, sizeof(expected), expected_fp) != NULL); in TEST()
246 ASSERT_STREQ(expected, buf1); in TEST()
247 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()
Dstdio_test.cpp47 static void AssertFileIs(FILE* fp, const char* expected, bool is_fmemopen = false) { in AssertFileIs() argument
53 ASSERT_STREQ(expected, line); in AssertFileIs()
135 const char* expected[] = { "This ", " ", "is ", "a ", "test" }; in TEST() local
138 …ASSERT_EQ(getdelim(&word_read, &allocated_length, ' ', fp), static_cast<int>(strlen(expected[i]))); in TEST()
139 ASSERT_GE(allocated_length, strlen(expected[i])); in TEST()
140 ASSERT_STREQ(expected[i], word_read); in TEST()
1317 char expected[BUFSIZ]; in TEST() local
1318 snprintf(expected, sizeof(expected), "hello %zu!\n", i); in TEST()
1320 AssertFileIs(fps[i], expected); in TEST()
Dpthread_test.cpp118 void* expected = reinterpret_cast<void*>(1234); in TEST() local
121 ASSERT_EQ(0, pthread_setspecific(key, expected)); in TEST()
122 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
127 ASSERT_EQ(EINVAL, pthread_setspecific(key, expected)); in TEST()
131 void* expected = reinterpret_cast<void*>(1234); in TEST() local
134 ASSERT_EQ(0, pthread_setspecific(key, expected)); in TEST()
135 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
142 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
148 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
/bionic/libc/include/
Dstdatomic.h367 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
369 __c11_atomic_compare_exchange_strong(object, expected, desired, \
371 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument
373 __c11_atomic_compare_exchange_weak(object, expected, desired, \
392 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
394 __atomic_compare_exchange_n(&(object)->__val, expected, \
396 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument
398 __atomic_compare_exchange_n(&(object)->__val, expected, \
419 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument
421 __typeof__(expected) __ep = (expected); \
[all …]
/bionic/tools/versioner/tests/preprocessor_merging/
Drun.sh4 diff -q -w -B out expected
/bionic/tools/versioner/tests/preprocessor_no_guard/
Drun.sh4 diff -q -w -B out expected
/bionic/tools/versioner/tests/preprocessor_file_offset_bits/
Drun.sh5 diff -q -w -B out expected
/bionic/tools/versioner/tests/preprocessor_idempotence/
Drun.sh4 diff -q -w -B out expected
/bionic/libc/malloc_debug/
DGuardData.cpp55 const uint8_t* expected = cmp_mem_.data(); in LogFailure() local
59 if (real[i] != expected[i]) { in LogFailure()
60 error_log(" allocation[%d] = 0x%02x (expected 0x%02x)", pointer_idx, real[i], expected[i]); in LogFailure()
DREADME.md66 04-10 12:00:45.622 7412 7412 E malloc_debug: allocation[-32] = 0x00 (expected 0xaa)
67 04-10 12:00:45.622 7412 7412 E malloc_debug: allocation[-15] = 0x02 (expected 0xaa)
86 04-10 12:00:45.622 7412 7412 E malloc_debug: allocation[130] = 0xbf (expected 0xbb)
87 04-10 12:00:45.622 7412 7412 E malloc_debug: allocation[131] = 0x00 (expected 0xbb)
178 04-15 12:00:31.305 7412 7412 E malloc_debug: allocation[20] = 0xaf (expected 0xef)
179 04-15 12:00:31.305 7412 7412 E malloc_debug: allocation[99] = 0x12 (expected 0xef)
DREADME_marshmallow_and_earlier.md84 the expected patterns. If not, then an error message is printed to the log.
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp1536 std::string expected; in VerifyRecordAllocs() local
1540 expected += android::base::StringPrintf("%d: malloc %p 10\n", getpid(), pointer); in VerifyRecordAllocs()
1542 expected += android::base::StringPrintf("%d: free %p\n", getpid(), pointer); in VerifyRecordAllocs()
1546 expected += android::base::StringPrintf("%d: calloc %p 20 1\n", getpid(), pointer); in VerifyRecordAllocs()
1548 expected += android::base::StringPrintf("%d: free %p\n", getpid(), pointer); in VerifyRecordAllocs()
1552 expected += android::base::StringPrintf("%d: realloc %p 0x0 30\n", getpid(), pointer); in VerifyRecordAllocs()
1556 expected += android::base::StringPrintf("%d: realloc %p %p 2048\n", getpid(), in VerifyRecordAllocs()
1559 expected += android::base::StringPrintf("%d: realloc 0x0 %p 0\n", getpid(), pointer); in VerifyRecordAllocs()
1563 expected += android::base::StringPrintf("%d: memalign %p 16 40\n", getpid(), pointer); in VerifyRecordAllocs()
1565 expected += android::base::StringPrintf("%d: free %p\n", getpid(), pointer); in VerifyRecordAllocs()
[all …]
/bionic/tools/versioner/tests/preprocessor/
Drun.sh8 diff -q -w -B $2 expected
/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))
1587 def test_block_parsing(lines, expected): argument
[all …]
/bionic/libc/kernel/uapi/linux/
Dbtrfs.h211 __u64 expected; member
/bionic/
Dandroid-changes-for-ndk-developers.md354 dlopen failed: "/data/data/com.example.bad/lib.so" has unsupported e_shentsize: 0x0 (expected 0x28)