/bionic/tests/ |
D | memtag_stack_test.cpp | 27 class MemtagStackTest : public testing::TestWithParam<std::tuple<const char*, bool>> {}; 49 testing::Combine(testing::Values("vfork_execve", "vfork_execl", "vfork_exit", "longjmp", 51 testing::Bool()), 52 [](const ::testing::TestParamInfo<MemtagStackTest::ParamType>& info) { in __anon6b4e00a90202()
|
D | heap_tagging_level_test.cpp | 119 testing::ExitedWithCode(SEGV_MTESERR), ""); in TEST() 125 testing::ExitedWithCode(SEGV_MTESERR), ""); in TEST() 133 Or(testing::ExitedWithCode(SEGV_MTESERR), testing::ExitedWithCode(SEGV_MTEAERR)), ""); in TEST() 139 Or(testing::ExitedWithCode(SEGV_MTESERR), testing::ExitedWithCode(SEGV_MTEAERR)), ""); in TEST() 222 class MemtagNoteTest : public testing::TestWithParam<std::tuple<MemtagNote, bool>> {}; 262 testing::Combine(testing::Values(MemtagNote::NONE, MemtagNote::ASYNC, 264 testing::Bool()));
|
D | error_test.cpp | 61 ASSERT_EXIT(error(22, 0, "x%c", 'y'), ::testing::ExitedWithCode(22), "xy"); in TEST() 65 …ASSERT_EXIT(error(22, EBADF, "x%c", 'y'), ::testing::ExitedWithCode(22), ": xy: Bad file descripto… in TEST() 69 …ASSERT_EXIT(error_at_line(22, 0, "a.c", 123, "x%c", 'y'), ::testing::ExitedWithCode(22), ":a.c:123… in TEST() 73 …ASSERT_EXIT(error_at_line(22, EBADF, "a.c", 123, "x%c", 'y'), ::testing::ExitedWithCode(22), ":a.c… in TEST()
|
D | gwp_asan_test.cpp | 78 std::string path = testing::internal::GetArgvs()[0]; in SyspropRestorer() 168 std::string path = testing::internal::GetArgvs()[0]; in TEST() 185 std::string path = testing::internal::GetArgvs()[0]; in TEST() 225 std::string path = testing::internal::GetArgvs()[0]; in TEST()
|
D | utils.cpp | 41 std::string exec(testing::internal::GetArgvs()[0]); in RunGwpAsanTest() 53 std::string exec(testing::internal::GetArgvs()[0]); in RunSubtestNoEnv()
|
D | stack_protector_test.cpp | 110 testing::KilledBySignal(SIGABRT), "tag-mismatch"); in TEST_F() 113 testing::KilledBySignal(SIGABRT), "stack corruption detected"); in TEST_F()
|
D | malloc_test.cpp | 947 if (::testing::Test::HasFatalFailure()) { in TestAllocateType() 960 if (::testing::Test::HasFatalFailure()) { in TestAllocateType() 972 if (::testing::Test::HasFatalFailure()) { in TestAllocateType() 1045 if (::testing::Test::HasFatalFailure()) { in AlignCheck() 1182 testing::ExitedWithCode(0), ""); in TEST() 1184 testing::ExitedWithCode(0), ""); in TEST() 1186 testing::ExitedWithCode(0), ""); in TEST() 1189 testing::ExitedWithCode(0), ""); in TEST() 1194 testing::ExitedWithCode(0), ""); in TEST() 1197 testing::ExitedWithCode(0), ""); in TEST() [all …]
|
D | scs_test.cpp | 35 ASSERT_EXIT(recurse1(SCS_SIZE), testing::KilledBySignal(SIGSEGV), ""); in TEST()
|
D | atexit_test.cpp | 107 ASSERT_EXIT(atexit_main(), testing::ExitedWithCode(0), "123456"); in TEST()
|
D | math_data_test.h | 151 ::testing::AssertionResult operator()(const char* /* expected_expression */, 156 return ::testing::AssertionSuccess(); 159 return ::testing::AssertionFailure()
|
D | sys_ptrace_test.cpp | 185 if (::testing::Test::IsSkipped()) { in run_watchpoint_test() 236 if (::testing::Test::IsSkipped()) { in TEST() 359 if (::testing::Test::IsSkipped()) { in TEST() 375 class PtraceResumptionTest : public ::testing::Test {
|
D | pidfd_test.cpp | 104 testing::KilledBySignal(SIGINT), ""); in TEST_F()
|
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 | 32 class SysResourceTest : public ::testing::Test {
|
D | cfi_test.cpp | 52 class cfi_test_DeathTest : public testing::Test {
|
D | clang_fortify_tests.cpp | 119 #define EXPECT_NO_DEATH(expr) DIE_WITH(expr, testing::ExitedWithCode(0), "") 120 #define EXPECT_FORTIFY_DEATH(expr) DIE_WITH(expr, testing::KilledBySignal(SIGABRT), "FORTIFY")
|
D | pthread_test.cpp | 385 ASSERT_EXIT(TestBug37410::main(), ::testing::ExitedWithCode(0), ""); in TEST_F() 1508 class pthread_CondWakeupTest : public ::testing::Test { 2519 ASSERT_EXIT(pthread_mutex_lock(&m), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2521 ASSERT_EXIT(pthread_mutex_unlock(&m), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2523 ASSERT_EXIT(pthread_mutex_trylock(&m), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2526 ASSERT_EXIT(pthread_mutex_timedlock(&m, &ts), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2528 ASSERT_EXIT(pthread_mutex_timedlock_monotonic_np(&m, &ts), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2530 ASSERT_EXIT(pthread_mutex_clocklock(&m, CLOCK_MONOTONIC, &ts), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2532 ASSERT_EXIT(pthread_mutex_clocklock(&m, CLOCK_REALTIME, &ts), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2535 ::testing::KilledBySignal(SIGABRT), in TEST_F() [all …]
|
D | fdsan_test.cpp | 41 struct fdsan : public ::testing::Test {
|
D | semaphore_test.cpp | 170 ASSERT_EXIT(sem_timedwait(&s, nullptr), testing::KilledBySignal(SIGSEGV), ""); in TEST_F()
|
D | complex_test.cpp | 45 namespace testing { namespace
|
/bionic/linker/ |
D | linker_block_allocator_test.cpp | 144 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST() 145 ASSERT_EXIT(protect_all(), testing::KilledBySignal(SIGSEGV), "trying to access protected page"); in TEST()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_system_tests.cpp | 212 class MallocDebugSystemTest : public ::testing::Test { 266 std::string exec(testing::internal::GetArgvs()[0]); in InternalExec() 430 SCOPED_TRACE(testing::Message() in VerifyLeak() 655 SCOPED_TRACE(::testing::Message() << "Run " << i); in TEST_F() 702 SCOPED_TRACE(::testing::Message() << "Run " << i); in TEST_F()
|
/bionic/libc/kernel/ |
D | README.md | 86 For testing purposes, it is possible that you can use the top of tree 102 # For testing only, not for use in production!
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 30 class SystemTests : public ::testing::Test {
|
/bionic/ |
D | README.md | 209 7. Add a basic test. Don't try to test everything; concentrate on just testing 224 For testing the *kernel* side of things, we should prefer to rely on 225 https://github.com/linux-test-project/ltp for kernel testing, but you'll 238 both on 32-bit and 64-bit. (These special cases warrant more testing than the 239 easy cases, even if only manual testing with strace. Sadly it isn't always
|