Lines Matching refs:tempdir
25 use tempfile::{tempdir, tempfile};
99 let tempdir = tempdir().unwrap(); in test_mkfifo() localVariable
100 let mkfifo_fifo = tempdir.path().join("mkfifo_fifo"); in test_mkfifo()
123 let tempdir = tempdir().unwrap(); in test_mkfifoat_none() localVariable
124 let mkfifoat_fifo = tempdir.path().join("mkfifoat_fifo"); in test_mkfifoat_none()
138 let tempdir = tempdir().unwrap(); in test_mkfifoat() localVariable
139 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat()
166 let tempdir = tempdir().unwrap(); in test_mkfifoat_directory() localVariable
167 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat_directory()
414 let tmpdir = tempdir().unwrap(); in test_fchdir()
429 let tmpdir = tempdir().unwrap(); in test_getcwd()
454 let tempdir = tempdir().unwrap(); in test_chown() localVariable
455 let path = tempdir.path().join("file"); in test_chown()
491 let tempdir = tempdir().unwrap(); in test_fchownat() localVariable
492 let path = tempdir.path().join("file"); in test_fchownat()
497 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_fchownat()
501 chdir(tempdir.path()).unwrap(); in test_fchownat()
655 let tempdir = tempdir().unwrap(); in test_truncate() localVariable
656 let path = tempdir.path().join("file"); in test_truncate()
672 let tempdir = tempdir().unwrap(); in test_ftruncate() localVariable
673 let path = tempdir.path().join("file"); in test_ftruncate()
760 let tempdir = tempdir().unwrap(); in test_symlinkat() localVariable
762 let target = tempdir.path().join("a"); in test_symlinkat()
763 let linkpath = tempdir.path().join("b"); in test_symlinkat()
770 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_symlinkat()
775 readlink(&tempdir.path().join(linkpath)) in test_symlinkat()
786 let tempdir = tempdir().unwrap(); in test_linkat_file() localVariable
788 let oldfilepath = tempdir.path().join(oldfilename); in test_linkat_file()
791 let newfilepath = tempdir.path().join(newfilename); in test_linkat_file()
797 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_linkat_file()
809 let tempdir_oldfile = tempdir().unwrap(); in test_linkat_olddirfd_none()
813 let tempdir_newfile = tempdir().unwrap(); in test_linkat_olddirfd_none()
834 let tempdir_oldfile = tempdir().unwrap(); in test_linkat_newdirfd_none()
838 let tempdir_newfile = tempdir().unwrap(); in test_linkat_newdirfd_none()
859 let tempdir = tempdir().unwrap(); in test_linkat_no_follow_symlink() localVariable
861 let oldfilepath = tempdir.path().join(oldfilename); in test_linkat_no_follow_symlink()
864 let symoldfilepath = tempdir.path().join(symoldfilename); in test_linkat_no_follow_symlink()
867 let newfilepath = tempdir.path().join(newfilename); in test_linkat_no_follow_symlink()
876 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_linkat_no_follow_symlink()
896 let tempdir = tempdir().unwrap(); in test_linkat_follow_symlink() localVariable
898 let oldfilepath = tempdir.path().join(oldfilename); in test_linkat_follow_symlink()
901 let symoldfilepath = tempdir.path().join(symoldfilename); in test_linkat_follow_symlink()
904 let newfilepath = tempdir.path().join(newfilename); in test_linkat_follow_symlink()
913 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_linkat_follow_symlink()
930 let tempdir = tempdir().unwrap(); in test_unlinkat_dir_noremovedir() localVariable
932 let dirpath = tempdir.path().join(dirname); in test_unlinkat_dir_noremovedir()
938 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_unlinkat_dir_noremovedir()
948 let tempdir = tempdir().unwrap(); in test_unlinkat_dir_removedir() localVariable
950 let dirpath = tempdir.path().join(dirname); in test_unlinkat_dir_removedir()
956 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_unlinkat_dir_removedir()
966 let tempdir = tempdir().unwrap(); in test_unlinkat_file() localVariable
968 let filepath = tempdir.path().join(filename); in test_unlinkat_file()
974 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_unlinkat_file()
983 let tempdir = tempdir().unwrap(); in test_access_not_existing() localVariable
984 let dir = tempdir.path().join("does_not_exist.txt"); in test_access_not_existing()
991 let tempdir = tempdir().unwrap(); in test_access_file_exists() localVariable
992 let path = tempdir.path().join("does_exist.txt"); in test_access_file_exists()