Lines Matching refs:tempdir
36 use tempfile::{tempdir, tempfile};
110 let tempdir = tempdir().unwrap(); in test_mkfifo() localVariable
111 let mkfifo_fifo = tempdir.path().join("mkfifo_fifo"); in test_mkfifo()
138 let tempdir = tempdir().unwrap(); in test_mkfifoat_none() localVariable
139 let mkfifoat_fifo = tempdir.path().join("mkfifoat_fifo"); in test_mkfifoat_none()
159 let tempdir = tempdir().unwrap(); in test_mkfifoat() localVariable
160 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat()
197 let tempdir = tempdir().unwrap(); in test_mkfifoat_directory() localVariable
198 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat_directory()
457 let tmpdir = tempdir().unwrap(); in test_fchdir()
472 let tmpdir = tempdir().unwrap(); in test_getcwd()
498 let tempdir = tempdir().unwrap(); in test_chown() localVariable
499 let path = tempdir.path().join("file"); in test_chown()
535 let tempdir = tempdir().unwrap(); in test_fchownat() localVariable
536 let path = tempdir.path().join("file"); in test_fchownat()
541 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_fchownat()
546 chdir(tempdir.path()).unwrap(); in test_fchownat()
761 let tempdir = tempdir().unwrap(); in test_truncate() localVariable
762 let path = tempdir.path().join("file"); in test_truncate()
778 let tempdir = tempdir().unwrap(); in test_ftruncate() localVariable
779 let path = tempdir.path().join("file"); in test_ftruncate()
872 let tempdir = tempdir().unwrap(); in test_symlinkat() localVariable
874 let target = tempdir.path().join("a"); in test_symlinkat()
875 let linkpath = tempdir.path().join("b"); in test_symlinkat()
882 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_symlinkat()
887 readlink(&tempdir.path().join(linkpath)) in test_symlinkat()
898 let tempdir = tempdir().unwrap(); in test_linkat_file() localVariable
900 let oldfilepath = tempdir.path().join(oldfilename); in test_linkat_file()
903 let newfilepath = tempdir.path().join(newfilename); in test_linkat_file()
910 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_linkat_file()
930 let tempdir_oldfile = tempdir().unwrap(); in test_linkat_olddirfd_none()
934 let tempdir_newfile = tempdir().unwrap(); in test_linkat_olddirfd_none()
967 let tempdir_oldfile = tempdir().unwrap(); in test_linkat_newdirfd_none()
971 let tempdir_newfile = tempdir().unwrap(); in test_linkat_newdirfd_none()
1009 let tempdir = tempdir().unwrap(); in test_linkat_no_follow_symlink() localVariable
1011 let oldfilepath = tempdir.path().join(oldfilename); in test_linkat_no_follow_symlink()
1014 let symoldfilepath = tempdir.path().join(symoldfilename); in test_linkat_no_follow_symlink()
1017 let newfilepath = tempdir.path().join(newfilename); in test_linkat_no_follow_symlink()
1027 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_linkat_no_follow_symlink()
1052 let tempdir = tempdir().unwrap(); in test_linkat_follow_symlink() localVariable
1054 let oldfilepath = tempdir.path().join(oldfilename); in test_linkat_follow_symlink()
1057 let symoldfilepath = tempdir.path().join(symoldfilename); in test_linkat_follow_symlink()
1060 let newfilepath = tempdir.path().join(newfilename); in test_linkat_follow_symlink()
1070 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_linkat_follow_symlink()
1099 let tempdir = tempdir().unwrap(); in test_unlinkat_dir_noremovedir() localVariable
1101 let dirpath = tempdir.path().join(dirname); in test_unlinkat_dir_noremovedir()
1108 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_unlinkat_dir_noremovedir()
1120 let tempdir = tempdir().unwrap(); in test_unlinkat_dir_removedir() localVariable
1122 let dirpath = tempdir.path().join(dirname); in test_unlinkat_dir_removedir()
1129 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_unlinkat_dir_removedir()
1140 let tempdir = tempdir().unwrap(); in test_unlinkat_file() localVariable
1142 let filepath = tempdir.path().join(filename); in test_unlinkat_file()
1149 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_unlinkat_file()
1159 let tempdir = tempdir().unwrap(); in test_access_not_existing() localVariable
1160 let dir = tempdir.path().join("does_not_exist.txt"); in test_access_not_existing()
1169 let tempdir = tempdir().unwrap(); in test_access_file_exists() localVariable
1170 let path = tempdir.path().join("does_exist.txt"); in test_access_file_exists()
1316 let tempdir = tempfile::tempdir().unwrap(); in test_faccessat_none_not_existing() localVariable
1317 let dir = tempdir.path().join("does_not_exist.txt"); in test_faccessat_none_not_existing()
1330 let tempdir = tempfile::tempdir().unwrap(); in test_faccessat_not_existing() localVariable
1331 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_faccessat_not_existing()
1350 let tempdir = tempfile::tempdir().unwrap(); in test_faccessat_none_file_exists() localVariable
1351 let path = tempdir.path().join("does_exist.txt"); in test_faccessat_none_file_exists()
1366 let tempdir = tempfile::tempdir().unwrap(); in test_faccessat_file_exists() localVariable
1367 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_faccessat_file_exists()
1369 let path = tempdir.path().join(exist_file); in test_faccessat_file_exists()
1387 let tempdir = tempdir().unwrap(); in test_eaccess_not_existing() localVariable
1388 let dir = tempdir.path().join("does_not_exist.txt"); in test_eaccess_not_existing()
1402 let tempdir = tempdir().unwrap(); in test_eaccess_file_exists() localVariable
1403 let path = tempdir.path().join("does_exist.txt"); in test_eaccess_file_exists()