/bionic/tests/ |
D | error_test.cpp | 59 ASSERT_EXIT(error(22, 0, "x%c", 'y'), ::testing::ExitedWithCode(22), "xy"); in TEST() 63 …ASSERT_EXIT(error(22, EBADF, "x%c", 'y'), ::testing::ExitedWithCode(22), ": xy: Bad file descripto… in TEST() 67 …ASSERT_EXIT(error_at_line(22, 0, "a.c", 123, "x%c", 'y'), ::testing::ExitedWithCode(22), ":a.c:123… in TEST() 71 …ASSERT_EXIT(error_at_line(22, EBADF, "a.c", 123, "x%c", 'y'), ::testing::ExitedWithCode(22), ":a.c… in TEST()
|
D | stack_protector_test.cpp | 109 testing::KilledBySignal(SIGABRT), "tag-mismatch"); in TEST_F() 112 testing::KilledBySignal(SIGABRT), "stack corruption detected"); in TEST_F()
|
D | malloc_test.cpp | 799 if (::testing::Test::HasFatalFailure()) { in TestAllocateType() 812 if (::testing::Test::HasFatalFailure()) { in TestAllocateType() 824 if (::testing::Test::HasFatalFailure()) { in TestAllocateType() 884 if (::testing::Test::HasFatalFailure()) { in TEST() 1022 testing::ExitedWithCode(0), ""); in TEST() 1024 testing::ExitedWithCode(0), ""); in TEST() 1026 testing::ExitedWithCode(0), ""); in TEST() 1029 testing::ExitedWithCode(0), ""); in TEST() 1034 testing::ExitedWithCode(0), ""); in TEST() 1037 testing::ExitedWithCode(0), ""); in TEST() [all …]
|
D | heap_tagging_level_test.cpp | 114 testing::ExitedWithCode(1), ""); in TEST() 122 testing::ExitedWithCode(1), ""); in TEST()
|
D | scs_test.cpp | 36 ASSERT_EXIT(recurse1(SCS_SIZE), testing::KilledBySignal(SIGSEGV), ""); in TEST()
|
D | BionicDeathTest.h | 28 class BionicDeathTest : public testing::Test {
|
D | sys_ptrace_test.cpp | 185 if (::testing::Test::IsSkipped()) { in run_watchpoint_test() 236 if (::testing::Test::IsSkipped()) { in TEST() 356 if (::testing::Test::IsSkipped()) { in TEST() 372 class PtraceResumptionTest : public ::testing::Test {
|
D | math_data_test.h | 151 ::testing::AssertionResult operator()(const char* /* expected_expression */, 156 return ::testing::AssertionSuccess(); 159 return ::testing::AssertionFailure()
|
D | atexit_test.cpp | 107 ASSERT_EXIT(atexit_main(), testing::ExitedWithCode(0), "123456"); in TEST()
|
D | __cxa_thread_atexit_test.cpp | 73 ASSERT_EXIT(thread_atexit_main(), testing::ExitedWithCode(0), "d-tor for main thread called."); in TEST()
|
D | sys_resource_test.cpp | 31 class SysResourceTest : public ::testing::Test {
|
D | pthread_test.cpp | 360 ASSERT_EXIT(TestBug37410::main(), ::testing::ExitedWithCode(0), ""); in TEST_F() 1469 class pthread_CondWakeupTest : public ::testing::Test { 2476 ASSERT_EXIT(pthread_mutex_lock(&m), ::testing::KilledBySignal(SIGABRT), in TEST() 2478 ASSERT_EXIT(pthread_mutex_unlock(&m), ::testing::KilledBySignal(SIGABRT), in TEST() 2480 ASSERT_EXIT(pthread_mutex_trylock(&m), ::testing::KilledBySignal(SIGABRT), in TEST() 2483 ASSERT_EXIT(pthread_mutex_timedlock(&m, &ts), ::testing::KilledBySignal(SIGABRT), in TEST() 2485 ASSERT_EXIT(pthread_mutex_timedlock_monotonic_np(&m, &ts), ::testing::KilledBySignal(SIGABRT), in TEST() 2487 ASSERT_EXIT(pthread_mutex_clocklock(&m, CLOCK_MONOTONIC, &ts), ::testing::KilledBySignal(SIGABRT), in TEST() 2489 ASSERT_EXIT(pthread_mutex_clocklock(&m, CLOCK_REALTIME, &ts), ::testing::KilledBySignal(SIGABRT), in TEST() 2492 ::testing::KilledBySignal(SIGABRT), in TEST() [all …]
|
D | clang_fortify_tests.cpp | 147 #define EXPECT_NO_DEATH(expr) DIE_WITH(expr, testing::ExitedWithCode(0), "") 148 #define EXPECT_FORTIFY_DEATH(expr) DIE_WITH(expr, testing::KilledBySignal(SIGABRT), "FORTIFY")
|
D | fdsan_test.cpp | 41 struct FdsanTest : public ::testing::Test {
|
D | semaphore_test.cpp | 165 ASSERT_EXIT(sem_timedwait(&s, nullptr), testing::KilledBySignal(SIGSEGV), ""); in TEST()
|
D | fortify_test.cpp | 32 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "FORTIFY") 34 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "") 638 ASSERT_EXIT(write(fd, buf, ct), testing::KilledBySignal(SIGABRT), ""); in TEST_F()
|
D | complex_test.cpp | 45 namespace testing { namespace
|
D | threads_test.cpp | 373 ASSERT_EXIT(thrd_exit(12), ::testing::ExitedWithCode(EXIT_SUCCESS), ""); in TEST()
|
D | dlext_test.cpp | 58 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack) 68 class DlExtTest : public ::testing::Test { 484 exit(testing::Test::HasFailure()); in CreateRelroFile()
|
D | unistd_test.cpp | 721 ASSERT_EXIT(abort(), testing::KilledBySignal(SIGABRT), ""); in TEST_F() 1506 ASSERT_EXIT(execve("/system/bin/run-as", args, envs), testing::ExitedWithCode(1), in TEST()
|
/bionic/linker/ |
D | linker_block_allocator_test.cpp | 145 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST() 146 ASSERT_EXIT(protect_all(), testing::KilledBySignal(SIGSEGV), "trying to access protected page"); in TEST()
|
D | Android.bp | 451 // Parts of the linker that we're testing.
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_system_tests.cpp | 85 std::string exec(testing::internal::GetArgvs()[0]); in Exec() 433 SCOPED_TRACE(testing::Message() << functions[i].name << " expected size " << functions[i].size); in VerifyLeak() 481 SCOPED_TRACE(::testing::Message() << "Run " << i); in TEST()
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 30 class SystemTests : public ::testing::Test {
|
/bionic/libc/malloc_hooks/tests/ |
D | malloc_hooks_tests.cpp | 56 class MallocHooksTest : public ::testing::Test {
|