Lines Matching refs:tempdir
33 let tempdir = tempfile::tempdir().unwrap(); in test_mount_tmpfs_without_flags_allows_rwx() localVariable
36 tempdir.path(), in test_mount_tmpfs_without_flags_allows_rwx()
42 let test_path = tempdir.path().join("test"); in test_mount_tmpfs_without_flags_allows_rwx()
85 umount(tempdir.path()).unwrap_or_else(|e| panic!("umount failed: {}", e)); in test_mount_tmpfs_without_flags_allows_rwx()
89 let tempdir = tempfile::tempdir().unwrap(); in test_mount_rdonly_disallows_write() localVariable
92 tempdir.path(), in test_mount_rdonly_disallows_write()
100 File::create(tempdir.path().join("test")).unwrap_err().raw_os_error().unwrap()); in test_mount_rdonly_disallows_write()
102 umount(tempdir.path()).unwrap_or_else(|e| panic!("umount failed: {}", e)); in test_mount_rdonly_disallows_write()
106 let tempdir = tempfile::tempdir().unwrap(); in test_mount_noexec_disallows_exec() localVariable
109 tempdir.path(), in test_mount_noexec_disallows_exec()
115 let test_path = tempdir.path().join("test"); in test_mount_noexec_disallows_exec()
140 umount(tempdir.path()).unwrap_or_else(|e| panic!("umount failed: {}", e)); in test_mount_noexec_disallows_exec()
144 let tempdir = tempfile::tempdir().unwrap(); in test_mount_bind() localVariable
148 let mount_point = tempfile::tempdir().unwrap(); in test_mount_bind()
150 mount(Some(tempdir.path()), in test_mount_bind()
172 File::open(tempdir.path().join(file_name)) in test_mount_bind()