Home
last modified time | relevance | path

Searched refs:testing (Results 1 – 25 of 40) sorted by relevance

12

/bionic/tests/
Dmemtag_stack_test.cpp27 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()
Dheap_tagging_level_test.cpp123 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()
Derror_test.cpp61 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()
Dgwp_asan_test.cpp81 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()
Dutils.cpp44 std::string exec(testing::internal::GetArgvs()[0]); in RunGwpAsanTest()
56 std::string exec(testing::internal::GetArgvs()[0]); in RunSubtestNoEnv()
Dscs_test.cpp39 ASSERT_EXIT(recurse1(SCS_SIZE), testing::KilledBySignal(SIGSEGV), ""); in TEST_F()
Dmalloc_test.cpp957 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 …]
Datexit_test.cpp107 ASSERT_EXIT(atexit_main(), testing::ExitedWithCode(0), "123456"); in TEST()
Dstack_protector_test.cpp141 ASSERT_EXIT(modify_stack_protector_test(), testing::KilledBySignal(SIGABRT), in TEST_F()
Dmath_data_test.h151 ::testing::AssertionResult operator()(const char* /* expected_expression */,
156 return ::testing::AssertionSuccess();
159 return ::testing::AssertionFailure()
Dsys_ptrace_test.cpp187 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 {
Dpidfd_test.cpp97 testing::KilledBySignal(SIGINT), ""); in TEST_F()
D__cxa_thread_atexit_test.cpp73 ASSERT_EXIT(thread_atexit_main(), testing::ExitedWithCode(0), "d-tor for main thread called."); in TEST()
Dsys_resource_test.cpp32 class SysResourceTest : public ::testing::Test {
Dcfi_test.cpp52 class cfi_test_DeathTest : public testing::Test {
Dclang_fortify_tests.cpp119 #define EXPECT_NO_DEATH(expr) DIE_WITH(expr, testing::ExitedWithCode(0), "")
120 #define EXPECT_FORTIFY_DEATH(expr) DIE_WITH(expr, testing::KilledBySignal(SIGABRT), "FORTIFY")
Dfdsan_test.cpp40 struct fdsan : public ::testing::Test {
Dpthread_test.cpp386 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 …]
Dsemaphore_test.cpp172 ASSERT_EXIT(sem_timedwait(&s, nullptr), testing::KilledBySignal(SIGSEGV), ""); in TEST_F()
Dcomplex_test.cpp40 namespace testing { namespace
/bionic/linker/
Dlinker_block_allocator_test.cpp144 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/
Dmalloc_debug_system_tests.cpp212 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/
DREADME.md86 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/
Dinterface_test.cpp30 class SystemTests : public ::testing::Test {
/bionic/
DREADME.md232 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

12