Lines Matching refs:tempdir
98 let tempdir = tempfile::tempdir().unwrap(); in test_stat_and_fstat() localVariable
99 let filename = tempdir.path().join("foo.txt"); in test_stat_and_fstat()
112 let tempdir = tempfile::tempdir().unwrap(); in test_fstatat() localVariable
113 let filename = tempdir.path().join("foo.txt"); in test_fstatat()
115 let dirfd = fcntl::open(tempdir.path(), in test_fstatat()
130 let tempdir = tempfile::tempdir().unwrap(); in test_stat_fstat_lstat() localVariable
131 let filename = tempdir.path().join("bar.txt"); in test_stat_fstat_lstat()
132 let linkname = tempdir.path().join("barlink"); in test_stat_fstat_lstat()
152 let tempdir = tempfile::tempdir().unwrap(); in test_fchmod() localVariable
153 let filename = tempdir.path().join("foo.txt"); in test_fchmod()
176 let tempdir = tempfile::tempdir().unwrap(); in test_fchmodat() localVariable
178 let fullpath = tempdir.path().join(filename); in test_fchmodat()
181 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_fchmodat()
191 chdir(tempdir.path()).unwrap(); in test_fchmodat()
218 let tempdir = tempfile::tempdir().unwrap(); in test_utimes() localVariable
219 let fullpath = tempdir.path().join("file"); in test_utimes()
234 let tempdir = tempfile::tempdir().unwrap(); in test_lutimes() localVariable
235 let target = tempdir.path().join("target"); in test_lutimes()
236 let fullpath = tempdir.path().join("symlink"); in test_lutimes()
254 let tempdir = tempfile::tempdir().unwrap(); in test_futimens() localVariable
255 let fullpath = tempdir.path().join("file"); in test_futimens()
268 let tempdir = tempfile::tempdir().unwrap(); in test_utimensat() localVariable
270 let fullpath = tempdir.path().join(filename); in test_utimensat()
273 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_utimensat()
279 chdir(tempdir.path()).unwrap(); in test_utimensat()
289 let tempdir = tempfile::tempdir().unwrap(); in test_mkdirat_success_path() localVariable
291 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_mkdirat_success_path()
293 assert!(Path::exists(&tempdir.path().join(filename))); in test_mkdirat_success_path()
300 let tempdir = tempfile::tempdir().unwrap(); in test_mkdirat_success_mode() localVariable
302 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_mkdirat_success_mode()
304 let permissions = fs::metadata(tempdir.path().join(filename)).unwrap().permissions(); in test_mkdirat_success_mode()
312 let tempdir = tempfile::tempdir().unwrap(); in test_mkdirat_fail() localVariable
315 let dirfd = fcntl::open(&tempdir.path().join(not_dir_filename), fcntl::OFlag::O_CREAT, in test_mkdirat_fail()