/third_party/rust/crates/nix/test/ |
H A D | test_dir.rs | 5 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 D | attr.py | 271 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 D | read_write.rs | 12 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 D | working_directory.rs | 5 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 D | mkdirat.rs | 6 let tmp = tempfile::tempdir().unwrap(); in test_mkdirat() 20 let tmp = tempfile::tempdir().unwrap(); in test_mkdirat_with_o_path()
|
H A D | utimensat.rs | 6 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 D | renameat.rs | 14 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 D | readdir.rs | 12 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 D | openat.rs | 8 let tmp = tempfile::tempdir().unwrap(); in test_openat_tmpfile()
|
H A D | long_paths.rs | 6 let tmp = tempfile::tempdir().unwrap(); in test_long_paths()
|
H A D | futimens.rs | 6 let tmp = tempfile::tempdir().unwrap(); in test_futimens()
|
H A D | mknodat.rs | 11 let tmp = tempfile::tempdir().unwrap(); in test_mknodat()
|
H A D | y2038.rs | 15 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 D | tempfile.py | 21 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 D | check.pl | 336 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 D | test_tempfile.py | 151 "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 D | test_httpservers.py | 363 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 D | test.cc | 76 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 D | fixtures.py | 25 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 D | lib.rs | 27 extern crate tempdir; 37 use tempdir::TempDir;
|
/third_party/rust/crates/nix/test/test_kmod/ |
H A D | mod.rs | 5 use tempfile::{tempdir, TempDir}; 11 tempdir().expect("unable to create temporary build directory"); in compile_kernel_module()
|
/third_party/PyYAML/ |
H A D | setup.py | 258 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 D | rust_is_available_test.py | 28 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 D | main.py | 212 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 D | glob-std.rs | 16 extern crate tempdir; 22 use tempdir::TempDir;
|