Home
last modified time | relevance | path

Searched refs:EXPECT_DEATH (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dreport_test.cpp16 EXPECT_DEATH(scudo::reportError("TEST123"), "Scudo ERROR.*TEST123"); in TEST()
17 EXPECT_DEATH(scudo::reportInvalidFlag("ABC", "DEF"), "Scudo ERROR.*ABC.*DEF"); in TEST()
18 EXPECT_DEATH(scudo::reportHeaderCorruption(P), "Scudo ERROR.*42424242"); in TEST()
19 EXPECT_DEATH(scudo::reportHeaderRace(P), "Scudo ERROR.*42424242"); in TEST()
20 EXPECT_DEATH(scudo::reportSanityCheckError("XYZ"), "Scudo ERROR.*XYZ"); in TEST()
21 EXPECT_DEATH(scudo::reportAlignmentTooBig(123, 456), "Scudo ERROR.*123.*456"); in TEST()
22 EXPECT_DEATH(scudo::reportAllocationSizeTooBig(123, 456, 789), in TEST()
24 EXPECT_DEATH(scudo::reportOutOfMemory(4242), "Scudo ERROR.*4242"); in TEST()
25 EXPECT_DEATH( in TEST()
28 EXPECT_DEATH( in TEST()
[all …]
/external/scudo/standalone/tests/
Dreport_test.cpp16 EXPECT_DEATH(scudo::reportError("TEST123"), "Scudo ERROR.*TEST123"); in TEST()
17 EXPECT_DEATH(scudo::reportInvalidFlag("ABC", "DEF"), "Scudo ERROR.*ABC.*DEF"); in TEST()
18 EXPECT_DEATH(scudo::reportHeaderCorruption(P), "Scudo ERROR.*42424242"); in TEST()
19 EXPECT_DEATH(scudo::reportHeaderRace(P), "Scudo ERROR.*42424242"); in TEST()
20 EXPECT_DEATH(scudo::reportSanityCheckError("XYZ"), "Scudo ERROR.*XYZ"); in TEST()
21 EXPECT_DEATH(scudo::reportAlignmentTooBig(123, 456), "Scudo ERROR.*123.*456"); in TEST()
22 EXPECT_DEATH(scudo::reportAllocationSizeTooBig(123, 456, 789), in TEST()
24 EXPECT_DEATH(scudo::reportOutOfMemory(4242), "Scudo ERROR.*4242"); in TEST()
25 EXPECT_DEATH( in TEST()
28 EXPECT_DEATH( in TEST()
[all …]
/external/compiler-rt/lib/asan/tests/
Dasan_str_test.cc67 EXPECT_DEATH(Ident(strlen(str - 1)), LeftOOBReadMessage(oob_kind, 1)); in StrLenOOBTestTemplate()
68 EXPECT_DEATH(Ident(strlen(str - 5)), LeftOOBReadMessage(oob_kind, 5)); in StrLenOOBTestTemplate()
70 EXPECT_DEATH(Ident(strlen(str + length + 1)), in StrLenOOBTestTemplate()
75 EXPECT_DEATH(Ident(strlen(str)), RightOOBReadMessage(oob_kind, 0)); in StrLenOOBTestTemplate()
76 EXPECT_DEATH(Ident(strlen(str + length)), RightOOBReadMessage(oob_kind, 0)); in StrLenOOBTestTemplate()
106 EXPECT_DEATH(Ident(wcslen(heap_string + 14)), RightOOBReadMessage(0)); in TEST()
121 EXPECT_DEATH(Ident(strnlen(str - 1, 1)), LeftOOBReadMessage(1)); in TEST()
122 EXPECT_DEATH(Ident(strnlen(str + size, 1)), RightOOBReadMessage(0)); in TEST()
125 EXPECT_DEATH(Ident(strnlen(str, size + 1)), RightOOBReadMessage(0)); in TEST()
141 EXPECT_DEATH(Ident(strdup(str - 1)), LeftOOBReadMessage(1)); in TEST()
[all …]
Dasan_mem_test.cc37 EXPECT_DEATH(MEMSET(array, 0, size + 1), in MemSetOOBTestTemplate()
39 EXPECT_DEATH(MEMSET((char*)(array + length) - 1, element, 6), in MemSetOOBTestTemplate()
41 EXPECT_DEATH(MEMSET(array + 1, element, size + sizeof(T)), in MemSetOOBTestTemplate()
44 EXPECT_DEATH(MEMSET(array + length + 1, 0, 10), in MemSetOOBTestTemplate()
48 EXPECT_DEATH(MEMSET((char*)array - 1, element, size), in MemSetOOBTestTemplate()
50 EXPECT_DEATH(MEMSET((char*)array - 5, 0, 6), in MemSetOOBTestTemplate()
54 EXPECT_DEATH(memset(array - 5, element, size + 5 * sizeof(T)), in MemSetOOBTestTemplate()
58 EXPECT_DEATH(MEMSET(array - 2, 0, sizeof(T)), in MemSetOOBTestTemplate()
62 EXPECT_DEATH(MEMSET((char*)array - 2, element, size + 4), in MemSetOOBTestTemplate()
112 EXPECT_DEATH(Ident(memset)(x1, 0, size * 2), in TEST()
[all …]
Dasan_test.cc55 EXPECT_DEATH(exit(1), ""); in TEST()
177 EXPECT_DEATH(uaf_test<U1>(1, 0), uaf_string); in TEST()
178 EXPECT_DEATH(uaf_test<U1>(10, 0), uaf_string); in TEST()
179 EXPECT_DEATH(uaf_test<U1>(10, 10), uaf_string); in TEST()
180 EXPECT_DEATH(uaf_test<U1>(kLargeMalloc, 0), uaf_string); in TEST()
181 EXPECT_DEATH(uaf_test<U1>(kLargeMalloc, kLargeMalloc / 2), uaf_string); in TEST()
187 EXPECT_DEATH(Ident(p)[12] = 0, "WRITE of size 1[026]"); in TEST()
188 EXPECT_DEATH(Ident(p)[0] = Ident(p)[12], "READ of size 1[026]"); in TEST()
209 EXPECT_DEATH(p[0] = p[3], "READ of size 5"); in TEST()
210 EXPECT_DEATH(p[3] = p[0], "WRITE of size 5"); in TEST()
[all …]
Dasan_mac_test.cc23 EXPECT_DEATH( in TEST()
35 EXPECT_DEATH(CFAllocator_DoubleFreeOnPthread(), "attempting double-free"); in TEST()
63 EXPECT_DEATH(CFAllocator_PassMemoryToAnotherThread(), in TEST()
72 EXPECT_DEATH( in TEST()
79 EXPECT_DEATH(CFAllocatorMallocDoubleFree(), "attempting double-free"); in TEST()
83 EXPECT_DEATH(CFAllocatorMallocZoneDoubleFree(), "attempting double-free"); in TEST()
92 EXPECT_DEATH(TestGCDDispatchAsync(), "Shadow byte legend"); in TEST()
98 EXPECT_DEATH(TestGCDDispatchSync(), "Shadow byte legend"); in TEST()
105 EXPECT_DEATH(TestGCDReuseWqthreadsAsync(), "Shadow byte legend"); in TEST()
111 EXPECT_DEATH(TestGCDReuseWqthreadsSync(), "Shadow byte legend"); in TEST()
[all …]
/external/llvm-project/compiler-rt/lib/asan/tests/
Dasan_str_test.cpp66 EXPECT_DEATH(Ident(strlen(str - 1)), LeftOOBReadMessage(oob_kind, 1)); in StrLenOOBTestTemplate()
67 EXPECT_DEATH(Ident(strlen(str - 5)), LeftOOBReadMessage(oob_kind, 5)); in StrLenOOBTestTemplate()
69 EXPECT_DEATH(Ident(strlen(str + length + 1)), in StrLenOOBTestTemplate()
74 EXPECT_DEATH(Ident(strlen(str)), RightOOBReadMessage(oob_kind, 0)); in StrLenOOBTestTemplate()
75 EXPECT_DEATH(Ident(strlen(str + length)), RightOOBReadMessage(oob_kind, 0)); in StrLenOOBTestTemplate()
108 EXPECT_DEATH(Ident(wcslen(heap_string + 14)), RightOOBReadMessage(0)); in TEST()
124 EXPECT_DEATH(Ident(strnlen(str - 1, 1)), LeftOOBReadMessage(1)); in TEST()
125 EXPECT_DEATH(Ident(strnlen(str + size, 1)), RightOOBReadMessage(0)); in TEST()
128 EXPECT_DEATH(Ident(strnlen(str, size + 1)), RightOOBReadMessage(0)); in TEST()
152 EXPECT_DEATH(Ident(strdup(str - 1)), LeftOOBReadMessage(1)); in TEST()
[all …]
Dasan_mem_test.cpp41 EXPECT_DEATH(MEMSET(array, 0, size + 1), in MemSetOOBTestTemplate()
43 EXPECT_DEATH(MEMSET((char*)(array + length) - 1, element, 6), in MemSetOOBTestTemplate()
45 EXPECT_DEATH(MEMSET(array + 1, element, size + sizeof(T)), in MemSetOOBTestTemplate()
48 EXPECT_DEATH(MEMSET(array + length + 1, 0, 10), in MemSetOOBTestTemplate()
52 EXPECT_DEATH(MEMSET((char*)array - 1, element, size), in MemSetOOBTestTemplate()
54 EXPECT_DEATH(MEMSET((char*)array - 5, 0, 6), in MemSetOOBTestTemplate()
58 EXPECT_DEATH(memset(array - 5, element, size + 5 * sizeof(T)), in MemSetOOBTestTemplate()
62 EXPECT_DEATH(MEMSET(array - 2, 0, sizeof(T)), in MemSetOOBTestTemplate()
66 EXPECT_DEATH(MEMSET((char*)array - 2, element, size + 4), in MemSetOOBTestTemplate()
116 EXPECT_DEATH(Ident(memset)(x1, 0, size * 2), in TEST()
[all …]
Dasan_test.cpp72 EXPECT_DEATH(exit(1), ""); in TEST()
196 EXPECT_DEATH(uaf_test<U1>(1, 0), uaf_string); in TEST()
197 EXPECT_DEATH(uaf_test<U1>(10, 0), uaf_string); in TEST()
198 EXPECT_DEATH(uaf_test<U1>(10, 10), uaf_string); in TEST()
199 EXPECT_DEATH(uaf_test<U1>(kLargeMalloc, 0), uaf_string); in TEST()
200 EXPECT_DEATH(uaf_test<U1>(kLargeMalloc, kLargeMalloc / 2), uaf_string); in TEST()
206 EXPECT_DEATH(Ident(p)[12] = 0, "WRITE of size 1[026]"); in TEST()
207 EXPECT_DEATH(Ident(p)[0] = Ident(p)[12], "READ of size 1[026]"); in TEST()
228 EXPECT_DEATH(p[0] = p[3], "READ of size 5"); in TEST()
229 EXPECT_DEATH(p[3] = p[0], "WRITE of size 5"); in TEST()
[all …]
Dasan_mac_test.cpp22 EXPECT_DEATH( in TEST()
34 EXPECT_DEATH(CFAllocator_DoubleFreeOnPthread(), "attempting double-free"); in TEST()
62 EXPECT_DEATH(CFAllocator_PassMemoryToAnotherThread(), in TEST()
71 EXPECT_DEATH( in TEST()
78 EXPECT_DEATH(CFAllocatorMallocDoubleFree(), "attempting double-free"); in TEST()
82 EXPECT_DEATH(CFAllocatorMallocZoneDoubleFree(), "attempting double-free"); in TEST()
91 EXPECT_DEATH(TestGCDDispatchAsync(), "Shadow byte legend"); in TEST()
97 EXPECT_DEATH(TestGCDDispatchSync(), "Shadow byte legend"); in TEST()
104 EXPECT_DEATH(TestGCDReuseWqthreadsAsync(), "Shadow byte legend"); in TEST()
110 EXPECT_DEATH(TestGCDReuseWqthreadsSync(), "Shadow byte legend"); in TEST()
[all …]
/external/autotest/client/site_tests/platform_ToolchainTests/src/
Dclang-fortify-tests.cpp101 #define EXPECT_DEATH(x) FORK_AND_EXPECT(x, true) macro
105 #define EXPECT_DEATH_STRUCT(x) EXPECT_DEATH(x)
123 EXPECT_DEATH(memcpy(small_buffer, large_buffer, sizeof(large_buffer))); in TestString()
125 EXPECT_DEATH(memmove(small_buffer, large_buffer, sizeof(large_buffer))); in TestString()
127 EXPECT_DEATH(mempcpy(small_buffer, large_buffer, sizeof(large_buffer))); in TestString()
129 EXPECT_DEATH(memset(small_buffer, 0, sizeof(large_buffer))); in TestString()
133 EXPECT_DEATH(bcopy(large_buffer, small_buffer, sizeof(large_buffer))); in TestString()
135 EXPECT_DEATH(bzero(small_buffer, sizeof(large_buffer))); in TestString()
143 EXPECT_DEATH(strcpy(small_buffer, large_string)); in TestString()
145 EXPECT_DEATH(stpcpy(small_buffer, large_string)); in TestString()
[all …]
/external/llvm-project/libcxx/test/support/
Dcontainer_debug_tests.h195 EXPECT_DEATH( ++it );
196 EXPECT_DEATH( it++ );
197 EXPECT_DEATH( *it );
199 EXPECT_DEATH( it.operator->() );
202 EXPECT_DEATH( --it );
203 EXPECT_DEATH( it-- );
215 EXPECT_DEATH( --i );
216 EXPECT_DEATH( i-- );
217 EXPECT_DEATH( --ci );
218 EXPECT_DEATH( ci-- );
[all …]
/external/llvm-project/libcxx/test/libcxx/debug/containers/
Ddb_sequence_container_iterators.pass.cpp142 EXPECT_DEATH( C.erase(it1) ); in AssignInvalidates()
143 EXPECT_DEATH( C.erase(it2) ); in AssignInvalidates()
144 EXPECT_DEATH( C.erase(it3, C.end()) ); in AssignInvalidates()
171 EXPECT_DEATH( C.back() ); in BackOnEmptyContainer()
172 EXPECT_DEATH( CC.back() ); in BackOnEmptyContainer()
182 EXPECT_DEATH( C.front() ); in FrontOnEmptyContainer()
183 EXPECT_DEATH( CC.front() ); in FrontOnEmptyContainer()
196 EXPECT_DEATH( C1.erase(it1_next, it1) ); // bad range in EraseIterIter()
199 EXPECT_DEATH( C1.erase(it1) ); in EraseIterIter()
200 EXPECT_DEATH( C1.erase(it1_next) ); in EraseIterIter()
[all …]
/external/llvm-project/libcxx/test/libcxx/containers/sequences/array/array.zero/
Ddb_indexing.pass.cpp26 EXPECT_DEATH( c[0] ); in main()
27 EXPECT_DEATH( c[1] ); in main()
28 EXPECT_DEATH( cc[0] ); in main()
29 EXPECT_DEATH( cc[1] ); in main()
35 EXPECT_DEATH( c[0] ); in main()
36 EXPECT_DEATH( c[1] ); in main()
37 EXPECT_DEATH( cc[0] ); in main()
38 EXPECT_DEATH( cc[1] ); in main()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_flags_test.cpp66 EXPECT_DEATH(TestFlag(false, "flag_name", true), "expected '='"); in TEST()
67 EXPECT_DEATH(TestFlag(false, "flag_name=", true), in TEST()
69 EXPECT_DEATH(TestFlag(false, "flag_name=2", true), in TEST()
71 EXPECT_DEATH(TestFlag(false, "flag_name=-1", true), in TEST()
73 EXPECT_DEATH(TestFlag(false, "flag_name=on", true), in TEST()
87 EXPECT_DEATH(TestFlag(kHandleSignalNo, "flag_name", kHandleSignalNo), in TEST()
89 EXPECT_DEATH(TestFlag(kHandleSignalNo, "flag_name=", kHandleSignalNo), in TEST()
91 EXPECT_DEATH(TestFlag(kHandleSignalNo, "flag_name=3", kHandleSignalNo), in TEST()
93 EXPECT_DEATH(TestFlag(kHandleSignalNo, "flag_name=-1", kHandleSignalNo), in TEST()
95 EXPECT_DEATH(TestFlag(kHandleSignalNo, "flag_name=on", kHandleSignalNo), in TEST()
[all …]
/external/googletest/googletest/test/
Dgoogletest-death-test-test.cc190 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine()
317 EXPECT_DEATH(_exit(1), ""); in TEST_F()
329 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3; in TEST_F()
346 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world"); in TEST_F()
365 EXPECT_DEATH(_exit(1), "") << "exit in switch case"; in TEST_F()
382 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F()
437 EXPECT_DEATH(_exit(1), ""); in TEST_F()
446 EXPECT_DEATH(_exit(1), ""); in TEST_F()
463 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F()
485 EXPECT_DEATH(_exit(1), ""); in TEST_F()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/test/
Dgoogletest-death-test-test.cc188 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine()
288 EXPECT_DEATH(_exit(1), ""); in TEST_F()
300 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3; in TEST_F()
314 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world"); in TEST_F()
333 EXPECT_DEATH(_exit(1), "") << "exit in switch case"; in TEST_F()
350 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F()
403 EXPECT_DEATH(_exit(1), ""); in TEST_F()
412 EXPECT_DEATH(_exit(1), ""); in TEST_F()
429 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F()
451 EXPECT_DEATH(_exit(1), ""); in TEST_F()
[all …]
/external/webrtc/rtc_base/
Dchecks_unittest.cc24 EXPECT_DEATH(FATAL() << "message", in TEST()
32 EXPECT_DEATH(RTC_CHECK_EQ(a, b) << 1 << 2u, in TEST()
41 EXPECT_DEATH(RTC_CHECK(false) << "Hi there!", in TEST()
48 EXPECT_DEATH(FATAL() << "message", in TEST()
56 EXPECT_DEATH(RTC_CHECK_EQ(a, b) << 1 << 2u, in TEST()
65 EXPECT_DEATH(RTC_CHECK(false) << "Hi there!", in TEST()
/external/llvm-project/llvm/unittests/Support/
DAnnotationsTest.cpp91 EXPECT_DEATH(llvm::Annotations("ab[[c]]def").point(), in TEST()
93 EXPECT_DEATH(llvm::Annotations("a^b^cdef").point(), in TEST()
96 EXPECT_DEATH(llvm::Annotations("a^bcdef").range(), in TEST()
98 EXPECT_DEATH(llvm::Annotations("a[[b]]c[[d]]ef").range(), in TEST()
101 EXPECT_DEATH(llvm::Annotations("$foo^a$foo^a").point("foo"), in TEST()
103 EXPECT_DEATH(llvm::Annotations("$foo[[a]]bc$foo[[a]]").range("foo"), in TEST()
107 EXPECT_DEATH(llvm::Annotations("ff[[fdfd"), "unmatched \\[\\["); in TEST()
108 EXPECT_DEATH(llvm::Annotations("ff[[fdjsfjd]]xxx]]"), "unmatched \\]\\]"); in TEST()
109 EXPECT_DEATH(llvm::Annotations("ff$fdsfd"), "unterminated \\$name"); in TEST()
DAlignmentTest.cpp315 EXPECT_DEATH((MaybeAlign(0).getValue()), ".*"); in TEST()
319 EXPECT_DEATH(Align(1) / 2, "Can't halve byte alignment"); in TEST()
320 EXPECT_DEATH(MaybeAlign(1) / 2, "Can't halve byte alignment"); in TEST()
322 EXPECT_DEATH(Align(8) / 0, "Divisor must be positive and a power of 2"); in TEST()
323 EXPECT_DEATH(Align(8) / 3, "Divisor must be positive and a power of 2"); in TEST()
327 EXPECT_DEATH((Align(0)), "Value must not be 0"); in TEST()
329 EXPECT_DEATH((Align(Value)), "Alignment is not a power of 2"); in TEST()
330 EXPECT_DEATH((MaybeAlign(Value)), in TEST()
337 EXPECT_DEATH((void)(Align(Value) == 0), ".* should be defined"); in TEST()
338 EXPECT_DEATH((void)(Align(Value) != 0), ".* should be defined"); in TEST()
[all …]
/external/llvm-project/llvm/unittests/CodeGen/
DMachineInstrBundleIteratorTest.cpp41 EXPECT_DEATH((void)static_cast<bundled_iterator>(I), in TEST()
43 EXPECT_DEATH((void)static_cast<bundled_iterator>(MBI), in TEST()
45 EXPECT_DEATH((void)static_cast<bundled_iterator>(&MBI), in TEST()
47 EXPECT_DEATH((void)static_cast<const_bundled_iterator>(I), in TEST()
49 EXPECT_DEATH((void)static_cast<const_bundled_iterator>(MBI), in TEST()
51 EXPECT_DEATH((void)static_cast<const_bundled_iterator>(&MBI), in TEST()
53 EXPECT_DEATH((void)static_cast<reverse_bundled_iterator>(RI), in TEST()
55 EXPECT_DEATH((void)static_cast<reverse_bundled_iterator>(MBI), in TEST()
57 EXPECT_DEATH((void)static_cast<reverse_bundled_iterator>(&MBI), in TEST()
59 EXPECT_DEATH((void)static_cast<const_reverse_bundled_iterator>(RI), in TEST()
[all …]
/external/llvm-project/libcxx/test/libcxx/debug/
Ddb_string_view.pass.cpp24 EXPECT_DEATH(std::string_view(nullptr)); in test_null_argument()
25 EXPECT_DEATH(std::string_view(NULL)); in test_null_argument()
26 EXPECT_DEATH(std::string_view(static_cast<const char*>(0))); in test_null_argument()
29 EXPECT_DEATH(((void)(v == nullptr))); in test_null_argument()
30 EXPECT_DEATH(((void)(nullptr == v))); in test_null_argument()
/external/llvm-project/clang/unittests/Serialization/
DInMemoryModuleCacheTest.cpp32 EXPECT_DEATH(Cache.tryToDropPCM("B"), "PCM to remove is unknown"); in TEST()
33 EXPECT_DEATH(Cache.finalizePCM("B"), "PCM to finalize is unknown"); in TEST()
49 EXPECT_DEATH(Cache.addPCM("B", getBuffer(2)), "Already has a PCM"); in TEST()
50 EXPECT_DEATH(Cache.addBuiltPCM("B", getBuffer(2)), in TEST()
67 EXPECT_DEATH(Cache.addPCM("B", getBuffer(2)), "Already has a PCM"); in TEST()
68 EXPECT_DEATH(Cache.addBuiltPCM("B", getBuffer(2)), in TEST()
90 EXPECT_DEATH(Cache.addPCM("B", getBuffer(2)), "Already has a PCM"); in TEST()
91 EXPECT_DEATH(Cache.tryToDropPCM("B"), in TEST()
93 EXPECT_DEATH(Cache.finalizePCM("B"), "Trying to finalize a dropped PCM"); in TEST()
/external/llvm-project/libcxx/test/libcxx/input.output/filesystems/class.path/path.itr/
Diterator_db.pass.cpp32 EXPECT_DEATH( ++singular ); in main()
33 EXPECT_DEATH( --singular ); in main()
41 EXPECT_DEATH( ++it ); in main()
47 EXPECT_DEATH( ++it ); in main()
50 EXPECT_DEATH( --it ); in main()
/external/perfetto/tools/sanitizers_unittests/
Dsanitizers_unittest.cc31 EXPECT_DEATH( in TEST()
47 EXPECT_DEATH( in TEST()
62 EXPECT_DEATH( in TEST()
75 EXPECT_DEATH( in TEST()
90 EXPECT_DEATH( in TEST()
101 EXPECT_DEATH( in TEST()

12345678910>>...12