/bionic/tests/ |
D | memtag_stack_test.cpp | 27 class MemtagStackTest : public testing::TestWithParam<std::tuple<const char*, bool>> {}; 48 testing::Combine(testing::Values("vfork_execve", "vfork_execl", "vfork_exit", "longjmp", 50 testing::Bool()), 51 [](const ::testing::TestParamInfo<MemtagStackTest::ParamType>& info) { in __anon289024e40202()
|
D | heap_tagging_level_test.cpp | 123 testing::ExitedWithCode(SEGV_MTESERR), ""); in TEST() 129 testing::ExitedWithCode(SEGV_MTESERR), ""); in TEST() 137 Or(testing::ExitedWithCode(SEGV_MTESERR), testing::ExitedWithCode(SEGV_MTEAERR)), ""); in TEST() 143 Or(testing::ExitedWithCode(SEGV_MTESERR), testing::ExitedWithCode(SEGV_MTEAERR)), ""); in TEST() 226 class MemtagNoteTest : public testing::TestWithParam<std::tuple<MemtagNote, bool>> {}; 261 testing::Combine(testing::Values(MemtagNote::NONE, MemtagNote::ASYNC, 263 testing::Bool()), 264 [](const ::testing::TestParamInfo<MemtagNoteTest::ParamType>& info) { in __anond4696d290302()
|
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 | 81 std::string path = testing::internal::GetArgvs()[0]; in SyspropRestorer() 171 std::string path = testing::internal::GetArgvs()[0]; in TEST() 188 std::string path = testing::internal::GetArgvs()[0]; in TEST() 228 std::string path = testing::internal::GetArgvs()[0]; in TEST()
|
D | utils.cpp | 44 std::string exec(testing::internal::GetArgvs()[0]); in RunGwpAsanTest() 56 std::string exec(testing::internal::GetArgvs()[0]); in RunSubtestNoEnv()
|
D | scs_test.cpp | 39 ASSERT_EXIT(recurse1(SCS_SIZE), testing::KilledBySignal(SIGSEGV), ""); in TEST_F()
|
D | malloc_test.cpp | 957 if (::testing::Test::HasFatalFailure()) { in TestAllocateType() 970 if (::testing::Test::HasFatalFailure()) { in TestAllocateType() 982 if (::testing::Test::HasFatalFailure()) { in TestAllocateType() 1055 if (::testing::Test::HasFatalFailure()) { in AlignCheck() 1192 testing::ExitedWithCode(0), ""); in TEST() 1194 testing::ExitedWithCode(0), ""); in TEST() 1196 testing::ExitedWithCode(0), ""); in TEST() 1199 testing::ExitedWithCode(0), ""); in TEST() 1204 testing::ExitedWithCode(0), ""); in TEST() 1207 testing::ExitedWithCode(0), ""); in TEST() [all …]
|
D | atexit_test.cpp | 107 ASSERT_EXIT(atexit_main(), testing::ExitedWithCode(0), "123456"); in TEST()
|
D | stack_protector_test.cpp | 141 ASSERT_EXIT(modify_stack_protector_test(), testing::KilledBySignal(SIGABRT), in TEST_F()
|
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 | 187 if (::testing::Test::IsSkipped()) { in run_watchpoint_test() 238 if (::testing::Test::IsSkipped()) { in TEST() 361 if (::testing::Test::IsSkipped()) { in TEST() 377 class PtraceResumptionTest : public ::testing::Test {
|
D | pidfd_test.cpp | 97 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 | fdsan_test.cpp | 40 struct fdsan : public ::testing::Test {
|
D | pthread_test.cpp | 386 ASSERT_EXIT(TestBug37410::main(), ::testing::ExitedWithCode(0), ""); in TEST_F() 1548 class pthread_CondWakeupTest : public ::testing::Test { 2583 ASSERT_EXIT(pthread_mutex_lock(&m), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2585 ASSERT_EXIT(pthread_mutex_unlock(&m), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2587 ASSERT_EXIT(pthread_mutex_trylock(&m), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2590 ASSERT_EXIT(pthread_mutex_timedlock(&m, &ts), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2592 ASSERT_EXIT(pthread_mutex_timedlock_monotonic_np(&m, &ts), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2594 ASSERT_EXIT(pthread_mutex_clocklock(&m, CLOCK_MONOTONIC, &ts), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2596 ASSERT_EXIT(pthread_mutex_clocklock(&m, CLOCK_REALTIME, &ts), ::testing::KilledBySignal(SIGABRT), in TEST_F() 2599 ::testing::KilledBySignal(SIGABRT), in TEST_F() [all …]
|
D | semaphore_test.cpp | 172 ASSERT_EXIT(sem_timedwait(&s, nullptr), testing::KilledBySignal(SIGSEGV), ""); in TEST_F()
|
D | complex_test.cpp | 40 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 | 232 7. Add a basic test. Don't try to test everything; concentrate on just testing 247 For testing the *kernel* side of things, we should prefer to rely on 248 https://github.com/linux-test-project/ltp for kernel testing, but you'll 261 both on 32-bit and 64-bit. (These special cases warrant more testing than the 262 easy cases, even if only manual testing with strace. Sadly it isn't always
|