Home
last modified time | relevance | path

Searched refs:tempdir (Results 26 - 50 of 64) sorted by relevance

123

/third_party/rust/crates/nix/test/
H A Dtest_dir.rs5 use tempfile::tempdir;
21 let tmp = tempdir().unwrap(); in read()
43 let tmp = tempdir().unwrap(); in rewind()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dattr.py271 def run_cmd(self, tempdir):
286 cmd = "PERF_TEST_ATTR=%s %s %s -o %s/perf.data %s" % (tempdir,
287 self.perf, self.command, tempdir, self.args)
363 tempdir = tempfile.mkdtemp();
367 self.run_cmd(tempdir);
371 for f in glob.glob(tempdir + '/event*'):
384 shutil.rmtree(tempdir)
/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/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()
/third_party/rust/crates/rustix/tests/fs/
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()
H A Drenameat.rs14 let tmp = tempfile::tempdir().unwrap(); in test_renameat()
37 let tmp = tempfile::tempdir().unwrap(); in test_renameat_overwrite()
59 let tmp = tempfile::tempdir().unwrap(); in test_renameat_with()
H A Dreaddir.rs12 let tmpdir = tempfile::tempdir().expect("construct tempdir"); in dir_entries()
13 let dirfd = File::open(tmpdir.path()).expect("open tempdir as file"); in dir_entries()
81 let tmpdir = tempfile::tempdir().expect("construct tempdir"); in test_raw_dir()
82 let mut dirfd = File::open(tmpdir.path()).expect("open tempdir as file"); in test_raw_dir()
H A Dopenat.rs8 let tmp = tempfile::tempdir().unwrap(); in test_openat_tmpfile()
H A Dlong_paths.rs6 let tmp = tempfile::tempdir().unwrap(); in test_long_paths()
H A Dfutimens.rs6 let tmp = tempfile::tempdir().unwrap(); in test_futimens()
H A Dmknodat.rs11 let tmp = tempfile::tempdir().unwrap(); in test_mknodat()
H A Dy2038.rs15 let tmp = tempfile::tempdir().unwrap(); in test_y2038_with_utimensat()
114 let tmp = tempfile::tempdir().unwrap(); in test_y2038_with_futimens()
/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/python/Lib/test/
H A Dtest_tempfile.py151 "tempdir" : 1,
322 with support.swap_attr(tempfile, 'tempdir', dir):
341 oldmode = mode = os.stat(tempfile.tempdir).st_mode
343 os.chmod(tempfile.tempdir, mode)
345 if os.access(tempfile.tempdir, os.W_OK):
349 self.assertEqual(os.listdir(tempfile.tempdir), [])
351 os.chmod(tempfile.tempdir, oldmode)
355 tempdir = os.path.join(tempfile.tempdir, 'nonexistent')
356 with support.swap_attr(tempfile, 'tempdir', tempdi
[all...]
H A Dtest_httpservers.py363 self.tempdir = tempfile.mkdtemp(dir=basetempdir)
364 self.tempdir_name = os.path.basename(self.tempdir)
366 tempname = os.path.join(self.tempdir, 'test')
382 shutil.rmtree(self.tempdir)
422 with open(os.path.join(self.tempdir, filename), 'wb') as f:
428 for name in os.listdir(self.tempdir):
459 os.mkdir(os.path.join(self.tempdir, 'existing_directory'))
521 os.makedirs(os.path.join(self.tempdir, 'spam', 'index.html'))
534 os.chmod(self.tempdir, 0)
539 os.chmod(self.tempdir,
[all...]
/third_party/ninja/src/
H A Dtest.cc76 const char* tempdir = getenv("TMPDIR"); in GetSystemTempDir()
77 if (tempdir) in GetSystemTempDir()
78 return tempdir; in GetSystemTempDir()
/third_party/python/Lib/test/test_importlib/
H A Dfixtures.py25 def tempdir(): function
44 with tempdir() as tmp:
68 self.site_dir = self.fixtures.enter_context(tempdir())
/third_party/rust/crates/bindgen/bindgen-tests/tests/quickchecking/src/
H A Dlib.rs27 extern crate tempdir;
37 use tempdir::TempDir;
/third_party/rust/crates/nix/test/test_kmod/
H A Dmod.rs5 use tempfile::{tempdir, TempDir};
11 tempdir().expect("unable to create temporary build directory"); in compile_kernel_module()
/third_party/PyYAML/
H A Dsetup.py258 tempdir = tempfile.TemporaryDirectory(prefix='test_pyyaml')
262 temp_test_path = pathlib.Path(tempdir.name) / 'pyyaml'
273 tempdir.cleanup()
/kernel/linux/linux-6.6/scripts/
H A Drust_is_available_test.py28 path = pathlib.Path(cls.tempdir.name)
76 cls.tempdir = tempfile.TemporaryDirectory()
78 cls.missing = pathlib.Path(cls.tempdir.name) / "missing"
80 cls.nonexecutable = pathlib.Path(cls.tempdir.name) / "nonexecutable"
/third_party/python/Lib/test/libregrtest/
H A Dmain.py212 if ns.tempdir:
213 ns.tempdir = os.path.expanduser(ns.tempdir)
655 if self.ns.tempdir:
656 self.tmp_dir = self.ns.tempdir
731 self.ns.tempdir = test_cwd
/third_party/rust/crates/glob/tests/
H A Dglob-std.rs16 extern crate tempdir;
22 use tempdir::TempDir;

Completed in 11 milliseconds

123