Searched refs:tmp_so_name (Results 1 – 2 of 2) sorted by relevance
1209 static void CopySharedLibrary(const char* tmp_dir, std::string* tmp_so_name) { in CopySharedLibrary() argument1219 *tmp_so_name = std::string(tmp_dir) + "/libbacktrace_test.so"; in CopySharedLibrary()1228 std::string tmp_so_name; in TEST_F() local1229 ASSERT_NO_FATAL_FAILURE(CopySharedLibrary(td.path, &tmp_so_name)); in TEST_F()1232 ASSERT_TRUE(stat(tmp_so_name.c_str(), &buf) != -1); in TEST_F()1235 int fd = open(tmp_so_name.c_str(), O_RDONLY); in TEST_F()1241 ASSERT_TRUE(unlink(tmp_so_name.c_str()) != -1); in TEST_F()1270 std::string tmp_so_name; in TEST_F() local1271 ASSERT_NO_FATAL_FAILURE(CopySharedLibrary(td.path, &tmp_so_name)); in TEST_F()1276 ASSERT_TRUE(stat(tmp_so_name.c_str(), &buf) != -1); in TEST_F()[all …]
1702 static bool CopySharedLibrary(const char* tmp_dir, std::string* tmp_so_name) { in CopySharedLibrary() argument1712 *tmp_so_name = std::string(tmp_dir) + "/libcrash_test.so"; in CopySharedLibrary()1724 std::string tmp_so_name; in TEST_F() local1725 if (!CopySharedLibrary(td.path, &tmp_so_name)) { in TEST_F()1728 void* handle = dlopen(tmp_so_name.c_str(), RTLD_NOW); in TEST_F()1734 if (unlink(tmp_so_name.c_str()) == -1) { in TEST_F()