Lines Matching full:path

51 static bool exists(const std::string &path) {
52 return access(path.c_str(), F_OK) == 0;
85 std::string path =
91 // But we can't use std::tmpfile() because we need a path to the file and
104 int file = open(path.c_str(), O_CREAT | O_EXCL, mode);
111 return path;
115 const std::string &path, const AccessType &accessType) {
116 const char *cpath{path.c_str()};
143 std::string path = createTemporaryFile(__func__, accessType);
144 ASSERT_FALSE(path.empty());
146 std::int64_t res = callAccess(path, accessType);
148 ASSERT_EQ(unlink(path.c_str()), 0);
168 std::string path = createTemporaryFile(__func__, accessType);
169 ASSERT_FALSE(path.empty());
171 std::int64_t res = callAccess(path, accessType);
173 ASSERT_EQ(unlink(path.c_str()), 0);
186 std::string path = createTemporaryFile(__func__, accessType);
187 ASSERT_FALSE(path.empty());
190 std::int64_t res = callAccess(path, accessType);
192 ASSERT_EQ(unlink(path.c_str()), 0);
205 std::string path = createTemporaryFile(__func__, accessType);
206 ASSERT_FALSE(path.empty());
208 std::int64_t res = callAccess(path, accessType);
210 ASSERT_EQ(unlink(path.c_str()), 0);
223 std::string path = createTemporaryFile(__func__, accessType);
224 ASSERT_FALSE(path.empty());
227 std::int64_t res = callAccess(path, accessType);
229 ASSERT_EQ(unlink(path.c_str()), 0);
243 std::string path = createTemporaryFile(__func__, accessType);
244 ASSERT_FALSE(path.empty());
246 std::int64_t res = callAccess(path, accessType);
248 ASSERT_EQ(unlink(path.c_str()), 0);
262 std::string path = createTemporaryFile(__func__, accessType);
263 ASSERT_FALSE(path.empty());
267 std::int64_t res = callAccess(path, accessType);
269 ASSERT_EQ(unlink(path.c_str()), 0);
283 std::string path = createTemporaryFile(__func__, accessType);
284 ASSERT_FALSE(path.empty());
288 std::int64_t res = callAccess(path, accessType);
290 ASSERT_EQ(unlink(path.c_str()), 0);
304 std::string path = createTemporaryFile(__func__, accessType);
305 ASSERT_FALSE(path.empty());
309 std::int64_t res = callAccess(path, accessType);
311 ASSERT_EQ(unlink(path.c_str()), 0);
324 std::string path = createTemporaryFile(__func__, accessType);
325 ASSERT_FALSE(path.empty());
327 std::int64_t res = callAccess(path, accessType);
329 ASSERT_EQ(unlink(path.c_str()), 0);
342 std::string path = createTemporaryFile(__func__, accessType);
343 ASSERT_FALSE(path.empty());
346 std::int64_t res = callAccess(path, accessType);
348 ASSERT_EQ(unlink(path.c_str()), 0);
363 std::string path = createTemporaryFile(__func__, accessType);
364 ASSERT_FALSE(path.empty());
366 std::int64_t res = callAccess(path, accessType);
368 ASSERT_EQ(unlink(path.c_str()), 0);
383 std::string path = createTemporaryFile(__func__, accessType);
384 ASSERT_FALSE(path.empty());
389 std::int64_t res = callAccess(path, accessType);
391 ASSERT_EQ(unlink(path.c_str()), 0);
406 std::string path = createTemporaryFile(__func__, accessType);
407 ASSERT_FALSE(path.empty());
412 std::int64_t res = callAccess(path, accessType);
414 ASSERT_EQ(unlink(path.c_str()), 0);
429 std::string path = createTemporaryFile(__func__, accessType);
430 ASSERT_FALSE(path.empty());
435 std::int64_t res = callAccess(path, accessType);
437 ASSERT_EQ(unlink(path.c_str()), 0);
452 std::string path = createTemporaryFile(__func__, accessType);
453 ASSERT_FALSE(path.empty());
458 std::int64_t res = callAccess(path, accessType);
460 ASSERT_EQ(unlink(path.c_str()), 0);
475 std::string path = createTemporaryFile(__func__, accessType);
476 ASSERT_FALSE(path.empty());
481 std::int64_t res = callAccess(path, accessType);
483 ASSERT_EQ(unlink(path.c_str()), 0);