Home
last modified time | relevance | path

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

/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()
DBionicDeathTest.h24 class BionicDeathTest : public testing::Test {
30 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; in SetUp()
Dgtest_main.cpp71 namespace testing { namespace
87 using testing::internal::GTestColor;
88 using testing::internal::COLOR_DEFAULT;
89 using testing::internal::COLOR_RED;
90 using testing::internal::COLOR_GREEN;
91 using testing::internal::COLOR_YELLOW;
92 using testing::internal::ColoredPrintf;
243 class TestResultPrinter : public testing::EmptyTestEventListener {
246 virtual void OnTestStart(const testing::TestInfo& test_info) { in OnTestStart()
249 virtual void OnTestPartResult(const testing::TestPartResult& result);
[all …]
Dstack_protector_test.cpp108 testing::KilledBySignal(SIGABRT), "stack corruption detected"); in TEST_F()
Datexit_test.cpp117 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 {
Dmath_data_test.h151 ::testing::AssertionResult operator()(const char* /* expected_expression */,
156 return ::testing::AssertionSuccess();
159 return ::testing::AssertionFailure()
Dsemaphore_test.cpp139 ASSERT_EXIT(sem_timedwait(&s, nullptr), testing::KilledBySignal(SIGSEGV), ""); in TEST()
Dfortify_test.cpp40 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "FORTIFY")
42 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "")
696 ASSERT_EXIT(write(fd, buf, ct), testing::KilledBySignal(SIGABRT), ""); in TEST_F()
Dsys_ptrace_test.cpp368 class PtraceResumptionTest : public ::testing::Test {
Dpthread_test.cpp350 ASSERT_EXIT(TestBug37410::main(), ::testing::ExitedWithCode(0), ""); in TEST_F()
1197 class pthread_CondWakeupTest : public ::testing::Test {
1870 ASSERT_EXIT(pthread_mutex_lock(null_value), testing::KilledBySignal(SIGSEGV), ""); in TEST_F()
1879 ASSERT_EXIT(pthread_mutex_unlock(null_value), testing::KilledBySignal(SIGSEGV), ""); in TEST_F()
Dstdlib_test.cpp247 ASSERT_EXIT(TestBug57421_main(), ::testing::ExitedWithCode(0), ""); in TEST_F()
Dunistd_test.cpp626 ASSERT_EXIT(abort(), testing::KilledBySignal(SIGABRT), ""); in TEST_F()
1372 ASSERT_EXIT(execve("/system/bin/run-as", args, envs), testing::ExitedWithCode(1), in TEST()
Dstdio_test.cpp1447 testing::KilledBySignal(SIGABRT), in TEST()
1459 testing::KilledBySignal(SIGABRT), in TEST()
Ddlext_test.cpp56 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
65 class DlExtTest : public ::testing::Test {
Ddlfcn_test.cpp47 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
/bionic/tools/relocation_packer/src/
Ddebug_unittest.cc102 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST()
110 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST()
117 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST()
/bionic/linker/tests/
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()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_config_tests.cpp28 class MallocDebugConfigTest : public ::testing::Test {
Dmalloc_debug_unit_tests.cpp85 class MallocDebugTest : public ::testing::Test {
/bionic/libc/
DNOTICE215 The argument reduction and testing for exceptional cases was