/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 36 EXPECT_DEATH(Ident(strlen(str - 1)), LeftOOBReadMessage(1)); in StrLenOOBTestTemplate() 37 EXPECT_DEATH(Ident(strlen(str - 5)), LeftOOBReadMessage(5)); in StrLenOOBTestTemplate() 39 EXPECT_DEATH(Ident(strlen(str + length + 1)), RightOOBReadMessage(0)); in StrLenOOBTestTemplate() 43 EXPECT_DEATH(Ident(strlen(str)), RightOOBReadMessage(0)); in StrLenOOBTestTemplate() 44 EXPECT_DEATH(Ident(strlen(str + length)), RightOOBReadMessage(0)); in StrLenOOBTestTemplate() 76 EXPECT_DEATH(Ident(wcslen(heap_string + 14)), RightOOBReadMessage(0)); in TEST() 91 EXPECT_DEATH(Ident(strnlen(str - 1, 1)), LeftOOBReadMessage(1)); in TEST() 92 EXPECT_DEATH(Ident(strnlen(str + size, 1)), RightOOBReadMessage(0)); in TEST() 95 EXPECT_DEATH(Ident(strnlen(str, size + 1)), RightOOBReadMessage(0)); in TEST() 111 EXPECT_DEATH(Ident(strdup(str - 1)), LeftOOBReadMessage(1)); in TEST() [all …]
|
D | asan_mem_test.cc | 37 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 …]
|
D | asan_test.cc | 55 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 …]
|
D | asan_mac_test.cc | 23 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 …]
|
D | asan_oob_test.cc | 40 EXPECT_DEATH(oob_test<T>(size, i), expected_str); in OOBTest() 53 EXPECT_DEATH(oob_test<T>(size, i), expected_str); in OOBTest() 57 EXPECT_DEATH(oob_test<T>(kLargeMalloc, -1), in OOBTest() 59 EXPECT_DEATH(oob_test<T>(kLargeMalloc, kLargeMalloc), in OOBTest() 95 EXPECT_DEATH(asan_write_sized_aligned(addr, access_size), in TEST() 109 EXPECT_DEATH(p[size] = 0, "is located 0 bytes to the right"); in TEST()
|
D | asan_asm_test.cc | 135 EXPECT_DEATH(asm_write(&buf[1], static_cast<T>(0)), DeathPattern); in TestAsmWrite() 149 EXPECT_DEATH(asm_write<__m128i>((__m128i*) p, val), DeathPattern); in TestAsmWrite() 158 EXPECT_DEATH(asm_read(&buf[1]), DeathPattern); in TestAsmRead() 170 EXPECT_DEATH(asm_read<__m128i>((__m128i*) p), DeathPattern); in TestAsmRead() 198 EXPECT_DEATH(asm_rep_movs(dst_bad, src_good, 4), DeathPatternWrite); in TestAsmRepMovs() 201 EXPECT_DEATH(asm_rep_movs(dst_good, src_bad, 4), DeathPatternRead); in TestAsmRepMovs() 212 EXPECT_DEATH(AsmLoad(&buf[3]), "READ of size 4"); in TEST() 213 EXPECT_DEATH(AsmStore(0x1234, &buf[3]), "WRITE of size 4"); in TEST()
|
D | asan_interface_test.cc | 44 EXPECT_DEATH(__sanitizer_get_allocated_size(wild_addr), in TEST() 47 EXPECT_DEATH(__sanitizer_get_allocated_size(array + kArraySize / 2), in TEST() 59 EXPECT_DEATH(__sanitizer_get_allocated_size(array), in TEST() 150 EXPECT_DEATH(DoDoubleFree(), "MyDeathCallback"); in TEST() 172 EXPECT_DEATH(value = Ident(array[40]), kUseAfterPoisonErrorMessage); in TEST() 374 EXPECT_DEATH(__asan_unpoison_memory_region(array, 121), in TEST() 376 EXPECT_DEATH(__asan_unpoison_memory_region(array - 1, 120), in TEST() 381 EXPECT_DEATH(__asan_poison_memory_region(array, 121), kInvalidPoisonMessage); in TEST() 382 EXPECT_DEATH(__asan_poison_memory_region(array - 1, 120), in TEST() 398 EXPECT_DEATH(__asan_report_error(0, 0, 0, 0, true, 1), in TEST()
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
D | gtest-death-test_test.cc | 194 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine() 294 EXPECT_DEATH(_exit(1), ""); in TEST_F() 306 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3; in TEST_F() 321 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world"); in TEST_F() 342 EXPECT_DEATH(_exit(1), "") << "exit in switch case"; in TEST_F() 361 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F() 414 EXPECT_DEATH(_exit(1), ""); in TEST_F() 423 EXPECT_DEATH(_exit(1), ""); in TEST_F() 440 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F() 462 EXPECT_DEATH(_exit(1), ""); in TEST_F() [all …]
|
D | gtest-death-test_ex_test.cc | 53 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw 1, ""), "threw an exception"); in TEST() 68 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw TestException(), ""), in TEST() 71 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw TestException(), ""), in TEST() 81 EXPECT_DEATH(RaiseException(42, 0x0, 0, NULL), "") in TEST()
|
/external/gtest/test/ |
D | gtest-death-test_test.cc | 194 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine() 294 EXPECT_DEATH(_exit(1), ""); in TEST_F() 306 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3; in TEST_F() 321 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world"); in TEST_F() 342 EXPECT_DEATH(_exit(1), "") << "exit in switch case"; in TEST_F() 361 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F() 414 EXPECT_DEATH(_exit(1), ""); in TEST_F() 423 EXPECT_DEATH(_exit(1), ""); in TEST_F() 440 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F() 462 EXPECT_DEATH(_exit(1), ""); in TEST_F() [all …]
|
D | gtest-death-test_ex_test.cc | 53 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw 1, ""), "threw an exception"); in TEST() 68 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw TestException(), ""), in TEST() 71 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw TestException(), ""), in TEST() 81 EXPECT_DEATH(RaiseException(42, 0x0, 0, NULL), "") in TEST()
|
/external/google-breakpad/src/testing/gtest/test/ |
D | gtest-death-test_test.cc | 196 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine() 296 EXPECT_DEATH(_exit(1), ""); in TEST_F() 308 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3; in TEST_F() 323 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world"); in TEST_F() 344 EXPECT_DEATH(_exit(1), "") << "exit in switch case"; in TEST_F() 363 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F() 416 EXPECT_DEATH(_exit(1), ""); in TEST_F() 425 EXPECT_DEATH(_exit(1), ""); in TEST_F() 442 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F() 464 EXPECT_DEATH(_exit(1), ""); in TEST_F() [all …]
|
D | gtest-death-test_ex_test.cc | 53 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw 1, ""), "threw an exception"); in TEST() 68 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw TestException(), ""), in TEST() 71 EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw TestException(), ""), in TEST() 81 EXPECT_DEATH(RaiseException(42, 0x0, 0, NULL), "") in TEST()
|
/external/protobuf/gtest/test/ |
D | gtest-death-test_test.cc | 186 EXPECT_DEATH(GlobalFunction(), "death.*GlobalFunction"); in DeathTestSubroutine() 282 EXPECT_DEATH(_exit(1), ""); in TEST_F() 294 EXPECT_DEATH(_exit(1), "") << 1 << 2 << 3; in TEST_F() 309 EXPECT_DEATH(DieWithEmbeddedNul(), "my null world"); in TEST_F() 330 EXPECT_DEATH(_exit(1), "") << "exit in switch case"; in TEST_F() 349 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F() 376 EXPECT_DEATH(MemberFunction(), "inside.*MemberFunction"); in TEST_F() 398 EXPECT_DEATH(_exit(1), ""); in TEST_F() 400 EXPECT_DEATH(_exit(1), ""); in TEST_F() 435 EXPECT_DEATH(GlobalFunction(), "GlobalFunction"); in TEST_F() [all …]
|
/external/libchrome/base/metrics/ |
D | sample_vector_unittest.cc | 108 EXPECT_DEATH(samples.Accumulate(INT_MIN, 100), ""); in TEST() 109 EXPECT_DEATH(samples.Accumulate(-1, 100), ""); in TEST() 110 EXPECT_DEATH(samples.Accumulate(INT_MAX, 100), ""); in TEST() 130 EXPECT_DEATH(samples2.Accumulate(0, 100), ""); in TEST() 131 EXPECT_DEATH(samples2.Accumulate(10, 100), ""); in TEST() 157 EXPECT_DEATH(samples1.Add(samples2), ""); in TEST() 158 EXPECT_DEATH(samples1.Subtract(samples2), ""); in TEST() 163 EXPECT_DEATH(samples1.Add(samples2), ""); in TEST() 164 EXPECT_DEATH(samples1.Subtract(samples2), ""); in TEST() 169 EXPECT_DEATH(samples1.Add(samples2), ""); in TEST() [all …]
|
/external/llvm/unittests/ADT/ |
D | APFloatTest.cpp | 1032 …EXPECT_DEATH(APFloat(APFloat::IEEEsingle, 0.0f).convertToDouble(), "Float semantics are not IEEEdo… in TEST() 1033 …EXPECT_DEATH(APFloat(APFloat::IEEEdouble, 0.0 ).convertToFloat(), "Float semantics are not IEEEsi… in TEST() 1037 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, ""), "Invalid string length"); in TEST() 1038 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+"), "String has no digits"); in TEST() 1039 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-"), "String has no digits"); in TEST() 1041 …EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("\0", 1)), "Invalid character in significand"); in TEST() 1042 …EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1\0", 2)), "Invalid character in significand"… in TEST() 1043 …EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1\02", 3)), "Invalid character in significand… in TEST() 1044 …EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1\02e1", 5)), "Invalid character in significa… in TEST() 1045 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1e\0", 3)), "Invalid character in exponent"); in TEST() [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/ |
D | audio_encoder_cng_unittest.cc | 428 EXPECT_DEATH(Encode(), ""); in TEST_F() 430 EXPECT_DEATH(Encode(), ""); in TEST_F() 435 EXPECT_DEATH(CreateCng(), "Invalid configuration"); in TEST_F() 437 EXPECT_DEATH(CreateCng(), "Invalid configuration"); in TEST_F() 439 EXPECT_DEATH(CreateCng(), "Invalid configuration"); in TEST_F() 444 EXPECT_DEATH(CreateCng(), "Invalid configuration"); in TEST_F() 449 EXPECT_DEATH(CreateCng(), "Invalid configuration"); in TEST_F() 451 EXPECT_DEATH(CreateCng(), "Invalid configuration"); in TEST_F() 460 EXPECT_DEATH(Encode(), in TEST_F()
|
/external/gtest/include/gtest/ |
D | gtest-death-test.h | 184 # define EXPECT_DEATH(statement, regex) \ macro 267 EXPECT_DEATH(statement, regex) 282 EXPECT_DEATH(statement, regex)
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/include/gtest/ |
D | gtest-death-test.h | 184 # define EXPECT_DEATH(statement, regex) \ macro 267 EXPECT_DEATH(statement, regex) 282 EXPECT_DEATH(statement, regex)
|
/external/llvm/utils/unittest/googletest/include/gtest/ |
D | gtest-death-test.h | 173 # define EXPECT_DEATH(statement, regex) \ macro 256 EXPECT_DEATH(statement, regex) 271 EXPECT_DEATH(statement, regex)
|
/external/google-breakpad/src/testing/gtest/include/gtest/ |
D | gtest-death-test.h | 184 # define EXPECT_DEATH(statement, regex) \ macro 267 EXPECT_DEATH(statement, regex) 282 EXPECT_DEATH(statement, regex)
|
/external/mesa3d/src/gtest/include/gtest/ |
D | gtest-death-test.h | 173 # define EXPECT_DEATH(statement, regex) \ macro 256 EXPECT_DEATH(statement, regex) 271 EXPECT_DEATH(statement, regex)
|
/external/protobuf/gtest/include/gtest/ |
D | gtest-death-test.h | 173 #define EXPECT_DEATH(statement, regex) \ macro 256 EXPECT_DEATH(statement, regex) 271 EXPECT_DEATH(statement, regex)
|
/external/libbrillo/brillo/ |
D | syslog_logging_unittest.cc | 23 EXPECT_DEATH({ LOG(FATAL) << "First Fatality!"; }, "First Fatality!"); in TEST_F() 27 EXPECT_DEATH({ LOG(FATAL) << "Second Fatality!"; }, "Second Fatality!"); in TEST_F()
|
/external/llvm/unittests/Support/ |
D | raw_pwrite_stream_test.cpp | 29 EXPECT_DEATH(OS.pwrite("12345", 5, 0), in TEST() 47 EXPECT_DEATH(OS.pwrite("12345", 5, 0), in TEST()
|