go/src/testing
Kir Kolyshkin 6fa224a809 testing: use testenv.Executable
Note that this changes some nuances of how the tests work:
 - some tests had a fallback to using os.Args[0], which is removed;
 - some tests skipped (rather than failed) the test upon getting an
   error from os.Executable.

I think these changes are not practically relevant.

Change-Id: I0655add6d959a8b7e3359f94c38203aa06e8f490
Reviewed-on: https://go-review.googlesource.com/c/go/+/609303
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2024-09-03 18:03:28 +00:00
..
fstest os,path/filepath,testing: use slices to clean up tests 2024-07-25 00:23:06 +00:00
internal/testdeps cmd/go: fix problems with coverage percentage reporting w/ -coverpkg 2024-06-14 11:46:05 +00:00
iotest
quick
slogtest
allocs.go
allocs_test.go
benchmark.go testing: rename testContext to testState 2024-08-21 20:52:09 +00:00
benchmark_test.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
cover.go
example.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
export_test.go testing: add Chdir 2024-08-16 23:48:50 +00:00
flag_test.go testing: use testenv.Executable 2024-09-03 18:03:28 +00:00
fuzz.go testing: rename testContext to testState 2024-08-21 20:52:09 +00:00
helper_test.go testing: use testenv.Executable 2024-09-03 18:03:28 +00:00
helperfuncs_test.go
match.go
match_test.go
newcover.go internal/coverage/cfile: remove //go:linkname into testing 2024-05-22 09:58:07 +00:00
panic_test.go
run_example.go
run_example_wasm.go
sub_test.go testing: rename testContext to testState 2024-08-21 20:52:09 +00:00
testing.go testing: rename testContext to testState 2024-08-21 20:52:09 +00:00
testing_other.go testing: use time.Since in highPrecisionTime 2024-04-27 19:42:36 +00:00
testing_test.go testing: use testenv.Executable 2024-09-03 18:03:28 +00:00
testing_windows.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00
testing_windows_test.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00