go/src/os
Bryan C. Mills 6e82febaf0 os: eliminate arbitrary timeout in testClosewithBlockingRead
The 1-second timeout on execution of this test is empirically too
short on some platforms. Rather than trying to tune the timeout, allow
the test to time out on its own (and dump goroutines) if it deadlocks.

Fixes #57993.
Fixes #57994.

Change-Id: I69ee86c75034469e4b4cd391b8dc5616b93468b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/463180
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
2023-01-25 20:45:53 +00:00
..
exec internal/godebug: export non-default-behavior counters in runtime/metrics 2023-01-19 22:26:43 +00:00
signal internal/testpty: move from os/signal/internal/pty 2022-11-16 19:00:19 +00:00
testdata
user os/user,net: add -fno-stack-protector to CFLAGS 2022-12-16 17:45:51 +00:00
dir.go
dir_darwin.go
dir_plan9.go
dir_unix.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
dir_windows.go os: use handle based APIs to read directories on windows 2023-01-24 13:26:00 +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
endian_big.go
endian_little.go go, math, os, reflect: support standard library for loong64 2022-05-20 15:12:52 +00:00
env.go all: add missing periods in comments 2022-11-18 17:59:44 +00:00
env_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
env_unix_test.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
error.go os: delete unused errClosed 2022-09-06 16:57:58 +00:00
error_errno.go
error_plan9.go
error_posix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
error_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
error_unix_test.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
error_windows_test.go
example_test.go os: add examples for Mkdir and MkdirAll 2022-02-08 23:38:05 +00:00
exec.go os: convert Process.isdone to atomic type 2022-09-15 21:11:27 +00:00
exec_plan9.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
exec_posix.go Revert "os: add handling of os.Interrupt for windows" 2022-04-04 15:12:26 +00:00
exec_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
exec_unix_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
exec_windows.go Revert "os: add handling of os.Interrupt for windows" 2022-04-04 15:12:26 +00:00
executable.go
executable_darwin.go
executable_dragonfly.go
executable_freebsd.go
executable_path.go
executable_plan9.go
executable_procfs.go
executable_solaris.go
executable_sysctl.go
executable_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
executable_windows.go
export_linux_test.go
export_test.go
export_unix_test.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
export_windows_test.go
fifo_test.go os: deflake TestPipeEOF and TestFifoEOF 2023-01-19 20:45:34 +00:00
file.go os: document that Rename is not atomic on non-Unix platforms 2023-01-17 18:12:07 +00:00
file_mutex_plan9.go os: use poll.fdMutex for Plan 9 files 2022-10-08 03:57:40 +00:00
file_plan9.go all: fix function names in comments 2022-11-04 22:36:12 +00:00
file_posix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
file_unix.go os: only add file descriptors which are set to non-blocking mode to the netpoller 2022-08-18 03:12:27 +00:00
file_windows.go os: use handle based APIs to read directories on windows 2023-01-24 13:26:00 +00:00
getwd.go
os_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
os_unix_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
os_windows_test.go os: treat non-symlink reparse points as irregular files 2023-01-23 22:46:55 +00:00
path.go
path_plan9.go
path_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
path_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
path_windows.go os: fix a typo in path_windows.go 2022-06-30 21:52:06 +00:00
path_windows_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
pipe2_unix.go os, internal/syscall/unix: consolidate Pipe implementations 2022-03-08 21:16:44 +00:00
pipe_test.go os: eliminate arbitrary timeout in testClosewithBlockingRead 2023-01-25 20:45:53 +00:00
pipe_unix.go os, internal/syscall/unix: consolidate Pipe implementations 2022-03-08 21:16:44 +00:00
proc.go runtime: add an exit hook facility 2022-09-26 21:49:14 +00:00
rawconn.go
rawconn_test.go all: separate doc comment from //go: directives 2022-04-05 17:54:15 +00:00
read_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
readfrom_linux.go
readfrom_linux_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
readfrom_stub.go
removeall_at.go os: have RemoveAll loop on EINTR 2023-01-25 07:07:01 +00:00
removeall_noat.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
removeall_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
rlimit.go all: use "unix" build tag where appropriate 2022-09-30 23:58:34 +00:00
rlimit_darwin.go os: raise open file rlimit at startup 2022-03-17 03:04:30 +00:00
rlimit_stub.go os: raise open file rlimit at startup 2022-03-17 03:04:30 +00:00
rlimit_test.go os: use a lower file count for TestOpenFileLimit on openbsd 2022-04-23 14:26:25 +00:00
stat.go
stat_aix.go
stat_darwin.go os: use syscall.Timespec.Unix 2022-03-28 04:41:26 +00:00
stat_dragonfly.go os: use syscall.Timespec.Unix 2022-03-28 04:41:26 +00:00
stat_freebsd.go os: use syscall.Timespec.Unix 2022-03-28 04:41:26 +00:00
stat_js.go os: use syscall.Timespec.Unix 2022-03-28 04:41:26 +00:00
stat_linux.go os: use syscall.Timespec.Unix 2022-03-28 04:41:26 +00:00
stat_netbsd.go os: use syscall.Timespec.Unix 2022-03-28 04:41:26 +00:00
stat_openbsd.go os: use syscall.Timespec.Unix 2022-03-28 04:41:26 +00:00
stat_plan9.go os: use poll.fdMutex for Plan 9 files 2022-10-08 03:57:40 +00:00
stat_solaris.go os: mark Solaris nam/door/port files as irregular 2022-04-12 01:41:47 +00:00
stat_test.go os: make Lstat for symlinks on Windows consistent with POSIX 2023-01-25 16:38:21 +00:00
stat_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
stat_windows.go os: make Lstat for symlinks on Windows consistent with POSIX 2023-01-25 16:38:21 +00:00
sticky_bsd.go
sticky_notbsd.go
str.go all: fix some typos 2022-10-06 02:49:55 +00:00
sys.go
sys_aix.go
sys_bsd.go
sys_js.go
sys_linux.go
sys_plan9.go
sys_solaris.go
sys_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
sys_windows.go
tempfile.go os: don't repeat dir argument in CreateTemp error 2022-02-07 07:14:28 +00:00
tempfile_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
timeout_test.go os: clean up tests 2023-01-19 20:45:37 +00:00
types.go
types_plan9.go os: use poll.fdMutex for Plan 9 files 2022-10-08 03:57:40 +00:00
types_unix.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
types_windows.go os: use handle based APIs to read directories on windows 2023-01-24 13:26:00 +00:00
wait6_dragonfly.go os: split wait6 syscall wrapper into per-platform files 2022-10-13 21:25:45 +00:00
wait6_freebsd64.go os: split wait6 syscall wrapper into per-platform files 2022-10-13 21:25:45 +00:00
wait6_freebsd_386.go os: split wait6 syscall wrapper into per-platform files 2022-10-13 21:25:45 +00:00
wait6_freebsd_arm.go os: split wait6 syscall wrapper into per-platform files 2022-10-13 21:25:45 +00:00
wait6_netbsd.go os: split wait6 syscall wrapper into per-platform files 2022-10-13 21:25:45 +00:00
wait_unimp.go os: use wait6 to avoid wait/kill race on netbsd 2022-09-19 18:44:37 +00:00
wait_wait6.go os: split wait6 syscall wrapper into per-platform files 2022-10-13 21:25:45 +00:00
wait_waitid.go