Lines Matching refs:tmp_so_name
1209 static void CopySharedLibrary(const char* tmp_dir, std::string* tmp_so_name) { in CopySharedLibrary() argument
1219 *tmp_so_name = std::string(tmp_dir) + "/libbacktrace_test.so"; in CopySharedLibrary()
1228 std::string tmp_so_name; in TEST_F() local
1229 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() local
1271 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()
1281 int fd = open(tmp_so_name.c_str(), O_RDONLY); in TEST_F()
1283 fprintf(stderr, "Failed to open file %s: %s\n", tmp_so_name.c_str(), strerror(errno)); in TEST_F()
1284 unlink(tmp_so_name.c_str()); in TEST_F()
1291 unlink(tmp_so_name.c_str()); in TEST_F()
1295 if (unlink(tmp_so_name.c_str()) == -1) { in TEST_F()
1417 std::string tmp_so_name; in TEST_F() local
1418 ASSERT_NO_FATAL_FAILURE(CopySharedLibrary(td.path, &tmp_so_name)); in TEST_F()
1420 void* lib_handle = dlopen(tmp_so_name.c_str(), RTLD_NOW); in TEST_F()
1422 ASSERT_TRUE(unlink(tmp_so_name.c_str()) != -1); in TEST_F()
1442 std::string tmp_so_name; in TEST_F() local
1443 ASSERT_NO_FATAL_FAILURE(CopySharedLibrary(td.path, &tmp_so_name)); in TEST_F()
1445 void* lib_handle = dlopen(tmp_so_name.c_str(), RTLD_NOW); in TEST_F()
1447 ASSERT_TRUE(unlink(tmp_so_name.c_str()) != -1); in TEST_F()