Home
last modified time | relevance | path

Searched refs:temp_dir (Results 51 - 72 of 72) sorted by relevance

123

/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs88 let mut path = env::temp_dir(); in test_mkstemp()
104 mkstemp(&env::temp_dir()).expect_err("assertion failed"); in test_mkstemp_directory()
124 mkfifo(&env::temp_dir(), Mode::S_IRUSR).expect_err("assertion failed"); in test_mkfifo_directory()
183 mkfifoat(None, &env::temp_dir(), Mode::S_IRUSR) in test_mkfifoat_directory_none()
/third_party/cups-filters/filter/foomatic-rip/
H A Dutil.h39 const char * temp_dir();
H A Dfoomaticrip.c620 snprintf(tmpfilename, PATH_MAX, "%s/foomatic-XXXXXX", temp_dir()); in print_file()
713 snprintf(tmpfilename, PATH_MAX, "%s/foomatic-XXXXXX", temp_dir()); in print_file()
H A Dutil.c37 const char * temp_dir() in temp_dir() function
/third_party/python/Lib/test/test_tools/
H A Dtest_pindent.py38 with os_helper.temp_dir() as directory:
/third_party/python/Lib/test/
H A Dtest_tempfile.py1543 temp_dir = self.do_create(
1545 temp_path = pathlib.Path(temp_dir.name)
1550 temp_dir.cleanup()
1559 temp_dir.cleanup()
1699 temp_dir = self.do_create(
1701 temp_path = pathlib.Path(temp_dir.name)
1706 del temp_dir
1757 temp_dir = tempfile.TemporaryDirectory(
1759 sys.stdout.buffer.write(temp_dir.name.encode())
1761 temp_dir_2 = pathlib.Path(temp_dir
[all...]
H A Dtest_argparse.py83 self.temp_dir = tempfile.mkdtemp()
85 os.chdir(self.temp_dir)
89 for root, dirs, files in os.walk(self.temp_dir, topdown=False):
91 os.chmod(os.path.join(self.temp_dir, name), stat.S_IWRITE)
92 shutil.rmtree(self.temp_dir, True)
95 file_path = os.path.join(self.temp_dir, filename)
1682 with open(os.path.join(self.temp_dir, file_name),
1704 file = open(os.path.join(self.temp_dir, 'good'), 'w', encoding="utf-8")
1723 with open(os.path.join(self.temp_dir, file_name),
H A Dtest_posix.py1918 temp_dir = tempfile.mkdtemp()
1919 self.addCleanup(os_helper.rmtree, temp_dir)
1922 program_fullpath = os.path.join(temp_dir, program)
1926 path = os.pathsep.join((temp_dir, os.environ['PATH']))
1928 path = temp_dir # PATH is not set
2047 with os_helper.temp_dir() as base_path:
H A Dtest_mimetypes.py75 with os_helper.temp_dir() as directory:
H A Dtest_dbm_dumb.py271 with os_helper.temp_dir() as dir:
H A Dtest_shutil.py1803 self.temp_dir = self.mkdtemp(prefix="Tmp")
1806 self.temp_file = tempfile.NamedTemporaryFile(dir=self.temp_dir,
1824 rv = shutil.which(self.temp_file.name, path=self.temp_dir)
1833 rv = shutil.which(relpath, path=self.temp_dir)
1954 temp_filexyz = tempfile.NamedTemporaryFile(dir=self.temp_dir,
1965 rv = shutil.which(program, path=self.temp_dir)
1972 temp_filexyz = tempfile.NamedTemporaryFile(dir=self.temp_dir,
1982 rv = shutil.which(program, path=self.temp_dir)
H A Dtest_gc.py6 from test.support.os_helper import temp_dir, TESTFN, unlink namespace
796 with temp_dir() as script_dir:
H A Dtest_zipfile.py30 TESTFN, unlink, rmtree, temp_dir, temp_cwd, fd_count
1544 with temp_dir() as extdir:
1548 with temp_dir() as extdir:
1579 with temp_dir() as extdir:
1583 with temp_dir() as extdir:
3024 with temp_dir() as extdir:
3172 tmpdir = pathlib.Path(self.fixtures.enter_context(temp_dir()))
H A Dtest_tarfile.py696 with os_helper.temp_dir(DIR), \
707 with os_helper.temp_dir(DIR), \
3067 with os_helper.temp_dir(DIR):
3345 with os_helper.temp_dir(self.outerdir):
H A Dtest_clinic.py853 with os_helper.temp_dir() as tmp_dir:
H A Dtest_ntpath.py839 with os_helper.temp_dir() as d:
H A Dtest_urllib.py1592 with os_helper.temp_dir() as tmpdir:
H A Dtest__xxsubinterpreters.py1063 with support.temp_dir() as dirname:
/third_party/python/Lib/test/test_sqlite3/
H A Dtest_dbapi.py39 from test.support.os_helper import TESTFN, TESTFN_UNDECODABLE, unlink, temp_dir, FakePath namespace
315 with temp_dir() as db:
569 with temp_dir() as db:
/third_party/python/Lib/test/test_import/
H A D__init__.py28 TESTFN, rmtree, temp_umask, TESTFN_UNENCODABLE, temp_dir)
55 with temp_dir() as tempdir:
496 with os_helper.temp_dir() as tmp:
/third_party/mesa3d/src/gtest/src/
H A Dgtest.cc6144 const char* temp_dir = internal::posix::GetEnv("TEMP");
6145 if (temp_dir == nullptr || temp_dir[0] == '\0')
6147 else if (temp_dir[strlen(temp_dir) - 1] == '\\')
6148 return temp_dir;
6150 return std::string(temp_dir) + "\\";
/third_party/node/tools/
H A Dtest.py1721 tempdir = os.environ.get('NODE_TEST_DIR') or options.temp_dir
1728 print("Could not create the temporary directory", options.temp_dir)

Completed in 56 milliseconds

123