go/src/os
Kir Kolyshkin 5164f61697 os: simplify TestRemoveAllLongPath
Simplify the test logic by using t.TempDir, t.Chdir, and Chdir to
startPath parent.

Change-Id: Ibe71a8c26b8e54c22eb93510037605b69c67bc7a
Reviewed-on: https://go-review.googlesource.com/c/go/+/606896
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2024-08-20 15:58:01 +00:00
..
exec os,path/filepath,testing: use slices to clean up tests 2024-07-25 00:23:06 +00:00
signal os/signal: remove SIGSYS from list of signals that take no action 2024-06-07 18:11:00 +00:00
testdata
user Revert "os/user: speed up Current on Windows" 2024-08-10 07:44:03 +00:00
dir.go os: use O_EXCL instead of O_TRUNC in CopyFS to disallow rewriting existing files 2024-08-16 23:34:41 +00:00
dir_darwin.go os: make File.Readdir et al concurrency-safe 2024-04-15 20:52:06 +00:00
dir_plan9.go os: make File.Readdir et al concurrency-safe 2024-04-15 20:52:06 +00:00
dir_unix.go os: use internal/byteorder 2024-05-14 20:11:45 +00:00
dir_windows.go os: make File.Readdir et al concurrency-safe 2024-04-15 20:52:06 +00:00
dirent_aix.go
dirent_dragonfly.go
dirent_freebsd.go
dirent_js.go
dirent_linux.go
dirent_netbsd.go
dirent_openbsd.go
dirent_solaris.go
dirent_wasip1.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
env.go os: add available godoc link 2024-02-26 21:33:12 +00:00
env_test.go os,path/filepath,testing: use slices to clean up tests 2024-07-25 00:23:06 +00:00
env_unix_test.go
error.go os: clarify that IsNotExist, IsExist, IsPermission and IsTimeout work with nil errors 2024-07-11 00:10:03 +00:00
error_errno.go
error_plan9.go
error_test.go os: remove unnecessary return after t.Fatal 2023-05-19 00:41:52 +00:00
error_unix_test.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
error_windows_test.go
example_test.go os: document CopyFS behavior for symlinks in destination 2024-07-24 18:24:15 +00:00
exec.go os: overhaul handling of PID vs pidfd within Process 2024-06-10 22:06:47 +00:00
exec_linux.go os: overhaul handling of PID vs pidfd within Process 2024-06-10 22:06:47 +00:00
exec_nohandle.go os: overhaul handling of PID vs pidfd within Process 2024-06-10 22:06:47 +00:00
exec_plan9.go os: overhaul handling of PID vs pidfd within Process 2024-06-10 22:06:47 +00:00
exec_posix.go os: overhaul handling of PID vs pidfd within Process 2024-06-10 22:06:47 +00:00
exec_test.go os: always return syscall.ECHILD from Wait for done process 2024-06-11 18:08:44 +00:00
exec_unix.go os: don't try to signal PID -1 on Unix 2024-07-17 20:32:58 +00:00
exec_unix_test.go os: don't try to signal PID -1 on Unix 2024-07-17 20:32:58 +00:00
exec_windows.go os: overhaul handling of PID vs pidfd within Process 2024-06-10 22:06:47 +00:00
exec_windows_test.go os: remove 5ms sleep on Windows in (*Process).Wait 2023-07-26 15:13:24 +00:00
executable.go os: add available godoc link 2024-02-26 21:33:12 +00:00
executable_darwin.go cmd/link: disallow pull-only linknames 2024-05-15 19:57:43 +00:00
executable_dragonfly.go
executable_freebsd.go
executable_path.go
executable_plan9.go
executable_procfs.go os: use stringslite.TrimSuffix 2024-05-05 00:26:04 +00:00
executable_solaris.go cmd/link: disallow pull-only linknames 2024-05-15 19:57:43 +00:00
executable_sysctl.go
executable_test.go all: use ^$ instead of XXXX, NoSuchTestExists to match no tests 2023-09-05 23:35:32 +00:00
executable_wasm.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
executable_windows.go
export_freebsd_test.go internal,os: employ copy_file_range(2) for file-to-file copying on FreeBSD 2024-08-15 19:23:02 +00:00
export_linux_test.go os: overhaul handling of PID vs pidfd within Process 2024-06-10 22:06:47 +00:00
export_test.go os: ensure File.ReadFrom returns ErrClosed instead of the internal poll.ErrFileClosing 2023-02-27 06:21:27 +00:00
export_unix_test.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
export_windows_test.go os: support relative paths in fixLongPath 2024-04-01 14:34:38 +00:00
fifo_test.go os: kick FIFOs with O_NONBLOCK out of the kqueue on Darwin/iOS 2024-03-19 11:47:23 +00:00
file.go os: clarify Rename docs for renaming to a directory 2024-08-02 19:09:11 +00:00
file_mutex_plan9.go
file_open_unix.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
file_open_wasip1.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
file_plan9.go os: use stringslite.HasPrefix 2024-04-30 15:35:30 +00:00
file_posix.go os: add available godoc link 2024-02-26 21:33:12 +00:00
file_unix.go os: RemoveAll: fix symlink race for unix 2024-05-29 13:52:34 +00:00
file_wasip1.go net: implement wasip1 FileListener and FileConn 2023-05-25 00:12:41 +00:00
file_windows.go os: use filepathlite.FromSlash 2024-04-30 15:38:38 +00:00
getwd.go os.Getwd: wrap error on windows and plan9 2024-08-19 21:44:08 +00:00
os_test.go os: use O_EXCL instead of O_TRUNC in CopyFS to disallow rewriting existing files 2024-08-16 23:34:41 +00:00
os_unix_test.go os: clean up after TestIssue60181 2024-07-12 16:31:06 +00:00
os_windows_test.go os,path/filepath,testing: use slices to clean up tests 2024-07-25 00:23:06 +00:00
path.go os: use filepathlite.VolumeName 2024-04-30 15:38:09 +00:00
path_plan9.go os: use filepathlite.VolumeName 2024-04-30 15:38:09 +00:00
path_test.go
path_unix.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
path_windows.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
path_windows_test.go all: fix some typos in comments 2024-04-23 16:37:32 +00:00
pidfd_linux.go os: always return syscall.ECHILD from Wait for done process 2024-06-11 18:08:44 +00:00
pidfd_linux_test.go os: always return syscall.ECHILD from Wait for done process 2024-06-11 18:08:44 +00:00
pidfd_other.go os: rm unused code 2024-07-27 00:57:42 +00:00
pipe2_unix.go os: kick FIFOs with O_NONBLOCK out of the kqueue on Darwin/iOS 2024-03-19 11:47:23 +00:00
pipe_test.go all: use ^TestName$ regular pattern for invoking a single test 2023-09-05 23:35:29 +00:00
pipe_unix.go os: kick FIFOs with O_NONBLOCK out of the kqueue on Darwin/iOS 2024-03-19 11:47:23 +00:00
pipe_wasm.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
proc.go os: add available godoc link 2024-02-26 21:33:12 +00:00
rawconn.go
rawconn_test.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
read_test.go os: change ioutil-test to os-test in test 2024-05-10 02:36:46 +00:00
readfrom_freebsd_test.go internal,os: employ copy_file_range(2) for file-to-file copying on FreeBSD 2024-08-15 19:23:02 +00:00
readfrom_linux_test.go os: increase the amount of data transfer for sendfile(2) to reduce syscalls 2024-08-15 20:21:47 +00:00
readfrom_sendfile_test.go os: increase the amount of data transfer for sendfile(2) to reduce syscalls 2024-08-15 20:21:47 +00:00
readfrom_solaris_test.go os: increase the amount of data transfer for sendfile(2) to reduce syscalls 2024-08-15 20:21:47 +00:00
readfrom_unix_test.go os: only employ sendfile(3ext) on illumos when target is regular file 2024-08-16 23:34:45 +00:00
removeall_at.go os: RemoveAll: fix error returned 2024-06-11 17:09:26 +00:00
removeall_noat.go
removeall_test.go os: simplify TestRemoveAllLongPath 2024-08-20 15:58:01 +00:00
stat.go os: add available godoc link 2024-02-26 21:33:12 +00:00
stat_aix.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_darwin.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_dragonfly.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_freebsd.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_js.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_linux.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_netbsd.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_openbsd.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_plan9.go
stat_solaris.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_test.go os: convert poll.ErrFileClosed to ErrClosed for Stat 2024-04-03 22:38:03 +00:00
stat_unix.go os: convert poll.ErrFileClosed to ErrClosed for Stat 2024-04-03 22:38:03 +00:00
stat_wasip1.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
stat_windows.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
sticky_bsd.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
sticky_notbsd.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
sys.go
sys_aix.go
sys_bsd.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
sys_js.go
sys_linux.go
sys_plan9.go
sys_solaris.go
sys_unix.go
sys_wasip1.go os: add wasip1 support 2023-04-07 23:34:21 +00:00
sys_windows.go
tempfile.go os: document file mode of temporary files 2024-04-12 18:04:39 +00:00
tempfile_test.go
timeout_test.go all: fix spelling errors 2023-06-14 00:03:57 +00:00
types.go os: make File.Readdir et al concurrency-safe 2024-04-15 20:52:06 +00:00
types_plan9.go
types_unix.go
types_windows.go os: use filepathlite.Base 2024-05-07 18:44:48 +00:00
wait6_dragonfly.go
wait6_freebsd64.go
wait6_freebsd_386.go
wait6_freebsd_arm.go
wait6_netbsd.go
wait_unimp.go os: adjust wait6/waitid comment for netbsd 2023-04-11 13:16:52 +00:00
wait_wait6.go
wait_waitid.go os: replace "used to used" with "used to use" in description text 2023-08-07 00:27:57 +00:00
writeto_linux_test.go os: employ sendfile(2) for file-to-file copying on SunOS when needed 2024-08-12 18:44:38 +00:00
zero_copy_freebsd.go internal,os: employ copy_file_range(2) for file-to-file copying on FreeBSD 2024-08-15 19:23:02 +00:00
zero_copy_linux.go os: employ sendfile(2) for file-to-file copying on SunOS when needed 2024-08-12 18:44:38 +00:00
zero_copy_posix.go os: employ sendfile(2) for file-to-file copying on SunOS when needed 2024-08-12 18:44:38 +00:00
zero_copy_solaris.go os: only employ sendfile(3ext) on illumos when target is regular file 2024-08-16 23:34:45 +00:00
zero_copy_stub.go internal,os: employ copy_file_range(2) for file-to-file copying on FreeBSD 2024-08-15 19:23:02 +00:00