/bionic/benchmarks/tests/ |
D | interface_test.cpp | 156 std::string expected = in TEST_F() local 176 Verify(expected, 0, std::vector<const char*>{"--help"}, false); in TEST_F() 197 std::string expected = in TEST_F() local 201 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_small.xml").c_str(), in TEST_F() 206 std::string expected = in TEST_F() local 219 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_medium.xml").c_str(), in TEST_F() 224 std::string expected = in TEST_F() local 234 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_from_each.xml").c_str(), in TEST_F() 239 std::string expected = in TEST_F() local 242 Verify(expected, 0, std::vector<const char*>{"--bionic_extra=BM_string_memcpy 8 8 8", in TEST_F() [all …]
|
/bionic/tests/ |
D | stdatomic_test.cpp | 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() [all …]
|
D | __cxa_atexit_test.cpp | 68 std::vector<int> expected; in TEST() local 69 for (int i = 498; i >= 0; i -= 2) expected.push_back(i); in TEST() 70 for (int i = 749; i >= 500; --i) expected.push_back(i); in TEST() 71 for (int i = 499; i >= 1; i -= 2) expected.push_back(i); in TEST() 73 ASSERT_EQ(expected.size(), actual.size()); in TEST() 74 for (size_t i = 0; i < expected.size(); ++i) { in TEST() 75 ASSERT_EQ(expected[i], actual[i]) << "index=" << i; in TEST()
|
D | math_data_test.h | 24 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 …]
|
D | libgen_basename_test.cpp | 60 #define TestGnuBasename(in, expected) __TestGnuBasename(in, expected, __LINE__) argument 61 #define TestPosixBasename(in, expected) __TestPosixBasename(in, expected, __LINE__) argument
|
D | string_test.cpp | 449 char* expected; in TEST() local 452 expected = state.ptr1 + state.len[i] - 1; in TEST() 454 expected = nullptr; 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 …]
|
D | search_test.cpp | 158 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()
|
D | sys_epoll_test.cpp | 63 const uint64_t expected = 0x123456789abcdef0; in TEST() local 68 ev.data.u64 = expected; in TEST() 77 ASSERT_EQ(expected, events[0].data.u64); in TEST()
|
D | sstream_test.cpp | 26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { in CheckOverflow() argument 33 ASSERT_EQ(expected, result) << value; in CheckOverflow()
|
D | fcntl_test.cpp | 221 char expected[BUFSIZ]; in TEST() local 224 ASSERT_TRUE(fgets(expected, sizeof(expected), expected_fp) != nullptr); in TEST() 259 ASSERT_STREQ(expected, buf1); in TEST() 260 ASSERT_STREQ(expected, buf2); in TEST()
|
D | stdlib_test.cpp | 914 double expected[3]; in TEST() local 916 ASSERT_EQ(3, fscanf(fp.get(), "%lf %lf %lf", &expected[0], &expected[1], &expected[2])); in TEST() 925 ASSERT_TRUE(fabs(expected[0] - load[0]) < 0.5) << expected[0] << ' ' << load[0]; in TEST() 926 ASSERT_TRUE(fabs(expected[1] - load[1]) < 0.5) << expected[1] << ' ' << load[1]; in TEST() 927 ASSERT_TRUE(fabs(expected[2] - load[2]) < 0.5) << expected[2] << ' ' << load[2]; in TEST()
|
D | setjmp_test.cpp | 87 void AssertSigmaskEquals(const sigset64_t& expected) { in AssertSigmaskEquals() argument 90 size_t end = sizeof(expected) * 8; in AssertSigmaskEquals() 92 EXPECT_EQ(sigismember64(&expected, i), sigismember64(&actual, i)) << i; in AssertSigmaskEquals()
|
/bionic/libc/bionic/ |
D | malloc_heapprofd.cpp | 235 MallocHeapprofdState expected = kInitialState; in HandleHeapprofdSignal() local 239 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, in HandleHeapprofdSignal() 353 MallocHeapprofdState expected = kInitialState; in HeapprofdInstallHooksAtInit() local 354 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kInstallingHook)) { in HeapprofdInstallHooksAtInit() 359 "current state (possible race): %d", getprogname(), expected); in HeapprofdInstallHooksAtInit() 366 MallocHeapprofdState expected = kInitialState; in InitHeapprofd() local 367 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kInstallingHook)) { in InitHeapprofd() 374 "current state (possible race): %d", getprogname(), expected); in InitHeapprofd() 382 MallocHeapprofdState expected = kEphemeralHookInstalled; in MallocInitHeapprofdHook() local 383 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kRemovingEphemeralHook)) { in MallocInitHeapprofdHook() [all …]
|
D | fdtrack.cpp | 51 bool android_fdtrack_compare_exchange_hook(android_fdtrack_hook_t* expected, in android_fdtrack_compare_exchange_hook() argument 53 return atomic_compare_exchange_strong(&__android_fdtrack_hook, expected, value); in android_fdtrack_compare_exchange_hook()
|
/bionic/libc/kernel/tools/ |
D | cpp.py | 1811 expected = """\ 1814 self.assertEqual(self.parse(text), expected) 1823 expected = "" 1824 self.assertEqual(self.parse(text), expected) 1834 expected = """\ 1837 self.assertEqual(self.parse(text), expected) 1847 expected = """\ 1850 self.assertEqual(self.parse(text), expected) 1860 expected = """\ 1867 self.assertEqual(self.parse(text), expected) [all …]
|
/bionic/libc/include/bits/ |
D | stdatomic.h | 207 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument 209 __c11_atomic_compare_exchange_strong(object, expected, desired, \ 211 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument 213 __c11_atomic_compare_exchange_weak(object, expected, desired, \ 236 #define atomic_compare_exchange_strong(object, expected, desired) \ argument 237 atomic_compare_exchange_strong_explicit(object, expected, \ 239 #define atomic_compare_exchange_weak(object, expected, desired) \ argument 240 atomic_compare_exchange_weak_explicit(object, expected, \
|
/bionic/linker/ |
D | linker_gnu_hash_test.cpp | 36 auto expected = calculate_gnu_hash_simple(name); in TEST() local 38 EXPECT_EQ(expected.first, actual.first) << name; in TEST() 39 EXPECT_EQ(expected.second, actual.second) << name; in TEST()
|
D | linker_memory.cpp | 45 pid_t expected = 0; in __linker_enable_fallback_allocator() local 46 return fallback_tid.compare_exchange_strong(expected, gettid()); in __linker_enable_fallback_allocator()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 1397 std::string expected = in BacktraceDumpOnSignal() local 1415 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in BacktraceDumpOnSignal() 1459 std::string expected = in TEST_F() local 1474 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in TEST_F() 1508 std::string expected = in TEST_F() local 1522 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in TEST_F() 1565 std::string expected = in TEST_F() local 1583 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in TEST_F() 2134 std::string expected; in VerifyRecordAllocs() local 2138 expected += android::base::StringPrintf("%d: malloc %p 10\n", getpid(), pointer); in VerifyRecordAllocs() [all …]
|
/bionic/libfdtrack/ |
D | fdtrack.cpp | 79 android_fdtrack_hook_t expected = nullptr; in ctor() local 80 installed = android_fdtrack_compare_exchange_hook(&expected, &fd_hook); in ctor() 86 android_fdtrack_hook_t expected = &fd_hook; in dtor() local 87 android_fdtrack_compare_exchange_hook(&expected, nullptr); in dtor()
|
/bionic/libc/malloc_debug/ |
D | GuardData.cpp | 55 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()
|
/bionic/tools/versioner/tests/preprocessor_idempotence/ |
D | run.sh | 4 diff -q -w -B out expected
|
/bionic/tools/versioner/tests/preprocessor_merging/ |
D | run.sh | 4 diff -q -w -B out expected
|
/bionic/tools/versioner/tests/preprocessor_no_guard/ |
D | run.sh | 4 diff -q -w -B out expected
|
/bionic/tools/versioner/tests/preprocessor_file_offset_bits/ |
D | run.sh | 5 diff -q -w -B out expected
|