diff options
| author | Bryan C. Mills <bcmills@google.com> | 2022-09-29 08:40:37 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-10-04 23:19:13 +0000 |
| commit | 0fec65d281af8932ce8da946faa55884f2427cfc (patch) | |
| tree | de48e699b6cb34c479cd9ff510dd6c6946aea726 /src/os/exec/dot_test.go | |
| parent | e7d203f494281a229a7d4ef769f14975e9b12e4e (diff) | |
| download | go-0fec65d281af8932ce8da946faa55884f2427cfc.tar.xz | |
os/exec: add a GODEBUG setting to diagnose leaked processes
Updates #52580.
For #50436.
Change-Id: I669f13863f1f85d576c3c94500b118e6989000eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/436655
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/os/exec/dot_test.go')
| -rw-r--r-- | src/os/exec/dot_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/exec/dot_test.go b/src/os/exec/dot_test.go index 306f98cbaa..eeb59f13ef 100644 --- a/src/os/exec/dot_test.go +++ b/src/os/exec/dot_test.go @@ -58,7 +58,7 @@ func TestLookPath(t *testing.T) { // And try to trick it with "../testdir" too. for _, errdot := range []string{"1", "0"} { t.Run("GODEBUG=execerrdot="+errdot, func(t *testing.T) { - t.Setenv("GODEBUG", "execerrdot="+errdot) + t.Setenv("GODEBUG", "execerrdot="+errdot+",execwait=2") for _, dir := range []string{".", "../testdir"} { t.Run(pathVar+"="+dir, func(t *testing.T) { t.Setenv(pathVar, dir+string(filepath.ListSeparator)+origPath) |
