Home
last modified time | relevance | path

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

12

/bionic/tests/
Derror_test.cpp59 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()
Dstack_protector_test.cpp109 testing::KilledBySignal(SIGABRT), "tag-mismatch"); in TEST_F()
112 testing::KilledBySignal(SIGABRT), "stack corruption detected"); in TEST_F()
Dmalloc_test.cpp799 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 …]
Dheap_tagging_level_test.cpp114 testing::ExitedWithCode(1), ""); in TEST()
122 testing::ExitedWithCode(1), ""); in TEST()
Dscs_test.cpp36 ASSERT_EXIT(recurse1(SCS_SIZE), testing::KilledBySignal(SIGSEGV), ""); in TEST()
DBionicDeathTest.h28 class BionicDeathTest : public testing::Test {
Dsys_ptrace_test.cpp185 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 {
Dmath_data_test.h151 ::testing::AssertionResult operator()(const char* /* expected_expression */,
156 return ::testing::AssertionSuccess();
159 return ::testing::AssertionFailure()
Datexit_test.cpp107 ASSERT_EXIT(atexit_main(), testing::ExitedWithCode(0), "123456"); in TEST()
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.cpp31 class SysResourceTest : public ::testing::Test {
Dpthread_test.cpp360 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 …]
Dclang_fortify_tests.cpp147 #define EXPECT_NO_DEATH(expr) DIE_WITH(expr, testing::ExitedWithCode(0), "")
148 #define EXPECT_FORTIFY_DEATH(expr) DIE_WITH(expr, testing::KilledBySignal(SIGABRT), "FORTIFY")
Dfdsan_test.cpp41 struct FdsanTest : public ::testing::Test {
Dsemaphore_test.cpp165 ASSERT_EXIT(sem_timedwait(&s, nullptr), testing::KilledBySignal(SIGSEGV), ""); in TEST()
Dfortify_test.cpp32 #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()
Dcomplex_test.cpp45 namespace testing { namespace
Dthreads_test.cpp373 ASSERT_EXIT(thrd_exit(12), ::testing::ExitedWithCode(EXIT_SUCCESS), ""); in TEST()
Ddlext_test.cpp58 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
68 class DlExtTest : public ::testing::Test {
484 exit(testing::Test::HasFailure()); in CreateRelroFile()
Dunistd_test.cpp721 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/
Dlinker_block_allocator_test.cpp145 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST()
146 ASSERT_EXIT(protect_all(), testing::KilledBySignal(SIGSEGV), "trying to access protected page"); in TEST()
DAndroid.bp451 // Parts of the linker that we're testing.
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_system_tests.cpp85 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/
Dinterface_test.cpp30 class SystemTests : public ::testing::Test {
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp56 class MallocHooksTest : public ::testing::Test {

12