Home
last modified time | relevance | path

Searched refs:tempdir (Results 1 - 25 of 55) sorted by relevance

123

/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs36 use tempfile::{tempdir, tempfile};
110 let tempdir = tempdir().unwrap(); in test_mkfifo()
111 let mkfifo_fifo = tempdir.path().join("mkfifo_fifo"); in test_mkfifo()
138 let tempdir = tempdir().unwrap(); in test_mkfifoat_none()
139 let mkfifoat_fifo = tempdir.path().join("mkfifoat_fifo"); in test_mkfifoat_none()
159 let tempdir = tempdir().unwrap(); in test_mkfifoat()
160 let dirfd = open(tempdir in test_mkfifoat()
[all...]
H A Dtest_stat.rs99 let tempdir = tempfile::tempdir().unwrap(); in test_stat_and_fstat()
100 let filename = tempdir.path().join("foo.txt"); in test_stat_and_fstat()
113 let tempdir = tempfile::tempdir().unwrap(); in test_fstatat()
114 let filename = tempdir.path().join("foo.txt"); in test_fstatat()
117 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()); in test_fstatat()
129 let tempdir = tempfile::tempdir().unwrap(); in test_stat_fstat_lstat()
130 let filename = tempdir in test_stat_fstat_lstat()
[all...]
H A Dtest_nmount.rs7 use tempfile::tempdir;
13 let mountpoint = tempdir().unwrap(); in ok()
14 let target = tempdir().unwrap(); in ok()
37 let mountpoint = tempdir().unwrap(); in bad_fstype()
38 let target = tempdir().unwrap(); in bad_fstype()
H A Dtest_fcntl.rs63 let old_dir = tempfile::tempdir().unwrap(); in test_renameat()
68 let new_dir = tempfile::tempdir().unwrap(); in test_renameat()
93 let old_dir = tempfile::tempdir().unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags()
98 let new_dir = tempfile::tempdir().unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags()
137 let old_dir = tempfile::tempdir().unwrap(); in test_renameat2_exchange()
145 let new_dir = tempfile::tempdir().unwrap(); in test_renameat2_exchange()
185 let old_dir = tempfile::tempdir().unwrap(); in test_renameat2_noreplace()
190 let new_dir = tempfile::tempdir().unwrap(); in test_renameat2_noreplace()
215 let tempdir = tempfile::tempdir() in test_readlink()
[all...]
H A Dtest_dir.rs5 use tempfile::tempdir;
21 let tmp = tempdir().unwrap(); in read()
43 let tmp = tempdir().unwrap(); in rewind()
/third_party/curl/src/
H A Dtool_dirhie.c101 char *tempdir; in create_dir_hierarchy() local
122 tempdir = strtok(outdup, PATH_DELIMITERS); in create_dir_hierarchy()
124 while(tempdir) { in create_dir_hierarchy()
132 msnprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
134 if(outdup == tempdir) { in create_dir_hierarchy()
142 char *p = strchr(tempdir, ':'); in create_dir_hierarchy()
147 strcpy(dirbuildup, tempdir); in create_dir_hierarchy()
150 msnprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
160 tempdir = tempdir2; in create_dir_hierarchy()
/third_party/rust/crates/nix/test/sys/
H A Dtest_inotify.rs9 let tempdir = tempfile::tempdir().unwrap(); in test_inotify()
12 .add_watch(tempdir.path(), AddWatchFlags::IN_ALL_EVENTS) in test_inotify()
18 File::create(tempdir.path().join("test")).unwrap(); in test_inotify()
27 let tempdir = tempfile::tempdir().unwrap(); in test_inotify_multi_events()
30 .add_watch(tempdir.path(), AddWatchFlags::IN_ALL_EVENTS) in test_inotify_multi_events()
36 File::create(tempdir.path().join("test")).unwrap(); in test_inotify_multi_events()
37 rename(tempdir.path().join("test"), tempdir in test_inotify_multi_events()
[all...]
H A Dtest_uio.rs13 use tempfile::tempdir;
126 let tempdir = tempdir().unwrap(); in test_pread()
128 let path = tempdir.path().join("pread_test_file"); in test_pread()
159 let tempdir = tempdir().unwrap(); in test_pwritev()
162 let path = tempdir.path().join("pwritev_test_file"); in test_pwritev()
188 let tempdir = tempdir().unwrap(); in test_preadv()
190 let path = tempdir in test_preadv()
[all...]
/third_party/node/deps/v8/tools/cppgc/
H A Dtest_cmake.sh21 if [[ -d "$tempdir" ]]; then
22 rm -rf $tempdir
42 tempdir=$(mktemp -d)
43 if [[ ! "$tempdir" || ! -d "$tempdir" ]]; then
48 cd $tempdir
/third_party/nghttp2/script/
H A Dfetch-ocsp-response155 def verify_response(cmd, tempdir, issuer_fn, respder_fn):
159 verify_fn = os.path.join(tempdir, 'verify.out')
191 def fetch_ocsp_response(cmd, cert_fn, tempdir, issuer_fn=None):
201 issuer_fn = os.path.join(tempdir, 'issuer.crt')
204 respder_fn = os.path.join(tempdir, 'resp.der')
216 if not verify_response(cmd, tempdir, issuer_fn, respder_fn):
243 tempdir = None variable
248 tempdir = tempfile.mkdtemp() variable
249 fetch_ocsp_response(args.openssl, args.certificate, tempdir,
252 if tempdir
[all...]
/third_party/node/deps/v8/tools/
H A Drun-wasm-api-tests.py9 Usage: tools/run-wasm-api-tests.py outdir tempdir [filters...]
12 "tempdir" is a temporary dir where this script may put its artifacts. It is
68 MIN_ARGS = 3 # Script, outdir, tempdir
76 def __init__(self, name, outdir, tempdir):
79 self.tempdir = tempdir
81 self.dst_file_basename = os.path.join(tempdir, name)
94 (step, self.outdir, self.tempdir, self.name, lang,
115 c = _Call(["cd", self.tempdir, ";", exe_file])
125 tempdir
[all...]
/third_party/python/Lib/test/
H A Dtest_glob.py15 return os.path.normpath(os.path.join(self.tempdir, *parts))
18 return [os.path.join(self.tempdir, *parts) for parts in tuples]
28 self.tempdir = TESTFN + "_dir"
44 self.dir_fd = os.open(self.tempdir, os.O_RDONLY | os.O_DIRECTORY)
51 shutil.rmtree(self.tempdir)
58 p = os.path.join(self.tempdir, pattern)
67 with change_cwd(self.tempdir):
75 self.assertCountEqual([os.path.join(self.tempdir, x) for x in res2],
83 self.assertCountEqual(glob.glob(pattern, root_dir=self.tempdir, **kwargs), res2)
84 self.assertCountEqual(glob.iglob(pattern, root_dir=self.tempdir, **kwarg
[all...]
/third_party/python/Lib/multiprocessing/
H A Dutil.py132 def _remove_temp_dir(rmtree, tempdir):
133 rmtree(tempdir)
139 current_process._config['tempdir'] = None
143 tempdir = process.current_process()._config.get('tempdir')
144 if tempdir is None:
146 tempdir = tempfile.mkdtemp(prefix='pymp-')
147 info('created temp directory %s', tempdir)
150 Finalize(None, _remove_temp_dir, args=(shutil.rmtree, tempdir),
152 process.current_process()._config['tempdir']
[all...]
/third_party/rust/crates/which-rs/tests/
H A Dbasic.rs14 pub tempdir: TempDir,
57 let tempdir = tempfile::tempdir().unwrap(); in new()
63 let p = tempdir.path().join(d); in new()
70 let p = tempdir.path().join("win-bin"); in new()
75 tempdir, in new()
83 touch(self.tempdir.path(), path, extension) in touch()
87 mk_bin(self.tempdir.path(), path, extension) in mk_bin()
92 which::CanonicalPath::new_in(path, Some(f.paths.clone()), f.tempdir.path()) in _which()
99 which::CanonicalPath::all_in(path, Some(f.paths.clone()), f.tempdir in _which_all()
[all...]
/third_party/python/Lib/test/test_importlib/source/
H A Dtest_finder.py159 tempdir = tempfile.TemporaryDirectory()
160 self.enterContext(tempdir)
164 original_mode = os.stat(tempdir.name).st_mode
165 self.addCleanup(os.chmod, tempdir.name, original_mode)
166 os.chmod(tempdir.name, stat.S_IWUSR | stat.S_IXUSR)
167 finder = self.get_finder(tempdir.name)
/third_party/python/Lib/distutils/tests/
H A Dtest_msvc9compiler.py143 tempdir = self.mkdtemp()
144 manifest = os.path.join(tempdir, 'manifest')
167 tempdir = self.mkdtemp()
168 manifest = os.path.join(tempdir, 'manifest')
/third_party/skia/tools/
H A Dmerge_static_libs.py27 tempdir = tempfile.mkdtemp()
32 os.chdir(tempdir)
56 shutil.rmtree(tempdir)
/third_party/rust/crates/rustix/tests/termios/
H A Disatty.rs3 use tempfile::{tempdir, TempDir};
7 tempdir().expect("expected to be able to create a temporary directory") in tmpdir()
12 let tmpdir = tempfile::tempdir().unwrap(); in std_file_is_not_terminal()
/third_party/rust/crates/rustix/tests/fs/
H A Dinvalid_offset.rs17 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_seek()
46 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_fallocate()
76 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_fadvise()
108 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_pread()
128 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_pwrite()
148 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_copy_file_range()
H A Dmkdirat.rs6 let tmp = tempfile::tempdir().unwrap(); in test_mkdirat()
20 let tmp = tempfile::tempdir().unwrap(); in test_mkdirat_with_o_path()
H A Dutimensat.rs6 let tmp = tempfile::tempdir().unwrap(); in test_utimensat()
66 let tmp = tempfile::tempdir().unwrap(); in test_utimensat_noent()
96 let tmp = tempfile::tempdir().unwrap(); in test_utimensat_notdir()
/third_party/rust/crates/rustix/tests/io/
H A Dread_write.rs12 let tmp = tempfile::tempdir().unwrap(); in test_readwrite_pv()
50 let tmp = tempfile::tempdir().unwrap(); in test_readwrite_p()
75 let tmp = tempfile::tempdir().unwrap(); in test_readwrite_v()
102 let tmp = tempfile::tempdir().unwrap(); in test_readwrite()
156 let tmp = tempfile::tempdir().unwrap(); in test_pwritev2()
/third_party/python/Lib/
H A Dtempfile.py21 tempdir - If this is set to a string before the first use of
32 "tempdir", "gettempdir",
106 if tempdir is None or isinstance(tempdir, str):
299 tempdir = None variable
302 """Private accessor for tempfile.tempdir."""
303 global tempdir
304 if tempdir is None:
307 if tempdir is None:
308 tempdir
[all...]
/third_party/mksh/
H A Dcheck.pl336 until (mkdir(($tempdir = sprintf("%s%03d", $temps, $tempi)), 0700)) {
339 die "$prog: couldn't cd to $tempdir - $!\n" if !chdir($tempdir);
363 $tempdir = "${temp_dir}/rtd";
364 mkdir($tempdir, 0700) or die "$prog: couldn't mkdir $tempdir - $!\n";
406 &scrub_dir($tempdir) if defined $tempdir;
407 rmdir($tempdir) if defined $tempdir;
[all...]
/third_party/rust/crates/rustix/tests/process/
H A Dworking_directory.rs5 use tempfile::{tempdir, TempDir};
9 tempdir().expect("expected to be able to create a temporary directory") in tmpdir()

Completed in 9 milliseconds

123