Home
last modified time | relevance | path

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

12

/bionic/benchmarks/tests/
Dinterface_test.cpp153 std::string expected = in TEST_F() local
177 Verify(expected, 0, std::vector<const char*>{"--help"}, false); in TEST_F()
198 std::string expected = in TEST_F() local
204 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_small.xml").c_str(), in TEST_F()
209 std::string expected = in TEST_F() local
224 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_medium.xml").c_str(), in TEST_F()
229 std::string expected = in TEST_F() local
239 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_from_each.xml").c_str(), in TEST_F()
244 std::string expected = in TEST_F() local
247 Verify(expected, 0, in TEST_F()
[all …]
/bionic/tests/
D__cxa_atexit_test.cpp79 std::vector<int> expected; in TEST() local
80 for (int i = 498; i >= 0; i -= 2) expected.push_back(i); in TEST()
81 for (int i = 749; i >= 500; --i) expected.push_back(i); in TEST()
82 for (int i = 499; i >= 1; i -= 2) expected.push_back(i); in TEST()
84 ASSERT_EQ(expected.size(), actual.size()); in TEST()
85 for (size_t i = 0; i < expected.size(); ++i) { in TEST()
86 ASSERT_EQ(expected[i], actual[i]) << "index=" << i; in TEST()
Dstdatomic_test.cpp106 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 …]
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 …]
Dlibgen_basename_test.cpp67 #define TestGnuBasename(in, expected) __TestGnuBasename(in, expected, __LINE__) argument
68 #define TestPosixBasename(in, expected) __TestPosixBasename(in, expected, __LINE__) argument
Dsearch_test.cpp165 int expected = 0; in TEST() local
167 ASSERT_EQ(expected, q->i); in TEST()
168 ++expected; in TEST()
170 ASSERT_EQ(3, expected); in TEST()
173 --expected; in TEST()
174 ASSERT_EQ(expected, q->i); in TEST()
176 ASSERT_EQ(0, expected); in TEST()
Dstring_test.cpp461 char* expected; in TEST() local
464 expected = state.ptr1 + state.len[i] - 1; in TEST()
466 expected = nullptr; in TEST()
470 expected = state.ptr1 + pos; in TEST()
473 ASSERT_TRUE(strchr(state.ptr1, seek_char) == expected); in TEST()
496 int expected; in TEST() local
499 expected = 0; in TEST()
504 expected = 1; in TEST()
508 expected = 0; in TEST()
510 expected = -1; in TEST()
[all …]
Dsys_epoll_test.cpp135 const uint64_t expected = 0x123456789abcdef0; in TEST() local
140 ev.data.u64 = expected; in TEST()
149 ASSERT_EQ(expected, events[0].data.u64); 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()
Dfcntl_test.cpp228 char expected[BUFSIZ]; in TEST() local
231 ASSERT_TRUE(fgets(expected, sizeof(expected), expected_fp) != nullptr); in TEST()
266 ASSERT_STREQ(expected, buf1); in TEST()
267 ASSERT_STREQ(expected, buf2); in TEST()
/bionic/libc/bionic/
Dmalloc_heapprofd.cpp235 MallocHeapprofdState expected = kInitialState; in HandleHeapprofdSignal() local
239 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, in HandleHeapprofdSignal()
276 } else if (expected == kEphemeralHookInstalled) { in HandleHeapprofdSignal()
371 MallocHeapprofdState expected = kInitialState; in HeapprofdInstallHooksAtInit() local
372 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kInstallingHook)) { in HeapprofdInstallHooksAtInit()
377 "current state (possible race): %d", getprogname(), expected); in HeapprofdInstallHooksAtInit()
384 MallocHeapprofdState expected = kInitialState; in InitHeapprofd() local
385 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kInstallingHook)) { in InitHeapprofd()
392 "current state (possible race): %d", getprogname(), expected); in InitHeapprofd()
400 MallocHeapprofdState expected = kEphemeralHookInstalled; in MallocInitHeapprofdHook() local
[all …]
Dfdtrack.cpp57 bool android_fdtrack_compare_exchange_hook(android_fdtrack_hook_t* expected, in android_fdtrack_compare_exchange_hook() argument
59 return atomic_compare_exchange_strong(&__android_fdtrack_hook, expected, value); in android_fdtrack_compare_exchange_hook()
/bionic/libc/kernel/tools/
Dcpp.py1853 expected = """\
1856 self.assertEqual(self.parse(text), expected)
1865 expected = ""
1866 self.assertEqual(self.parse(text), expected)
1876 expected = """\
1879 self.assertEqual(self.parse(text), expected)
1889 expected = """\
1892 self.assertEqual(self.parse(text), expected)
1902 expected = """\
1909 self.assertEqual(self.parse(text), expected)
[all …]
/bionic/linker/
Dlinker_gnu_hash_test.cpp36 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()
Dlinker_memory.cpp45 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/include/bits/
Dstdatomic.h207 #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/libc/malloc_debug/
DLogAllocatorStats.cpp47 bool expected = true; in CheckIfShouldLog() local
48 if (g_call_mallopt.compare_exchange_strong(expected, false)) { in CheckIfShouldLog()
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()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp187 static void VerifyRecords(std::vector<std::string>& expected, std::string& actual) { in VerifyRecords() argument
189 for (std::string& str : expected) { in VerifyRecords()
1466 std::string expected = in BacktraceDumpOnSignal() local
1484 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in BacktraceDumpOnSignal()
1528 std::string expected = in TEST_F() local
1543 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in TEST_F()
1577 std::string expected = in TEST_F() local
1591 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in TEST_F()
1635 std::string expected = in TEST_F() local
1653 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in TEST_F()
[all …]
/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/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/libfdtrack/
Dfdtrack.cpp101 android_fdtrack_hook_t expected = nullptr; in ctor() local
102 installed = android_fdtrack_compare_exchange_hook(&expected, &fd_hook); in ctor()
110 android_fdtrack_hook_t expected = &fd_hook; in dtor() local
111 android_fdtrack_compare_exchange_hook(&expected, nullptr); in dtor()
/bionic/libc/platform/bionic/
Dfdtrack.h69 bool android_fdtrack_compare_exchange_hook(android_fdtrack_hook_t* _Nonnull expected,

12