Skip to content

Commit d9ffb2d

Browse files
n
Change-Id: Ia5035a9e583fffee355265ee18cb10609d9c14c1
1 parent be41db8 commit d9ffb2d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/os/exec/exec_windows_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"io"
1313
"os"
1414
"os/exec"
15+
"path/filepath"
1516
"strconv"
1617
"strings"
1718
"syscall"
@@ -107,3 +108,16 @@ func TestChildCriticalEnv(t *testing.T) {
107108
t.Error("no SYSTEMROOT found")
108109
}
109110
}
111+
112+
func TestIssue66586(t *testing.T) {
113+
testenv.MustHaveGoBuild(t)
114+
path := filepath.Join(testenv.GOROOT(t), "bin", "go")
115+
cmd := exec.Command(path, "version")
116+
err := cmd.Run()
117+
if err != nil {
118+
t.Fatal(err)
119+
}
120+
if path != cmd.Path {
121+
t.Fatalf("unexpected path: %s", cmd.Path)
122+
}
123+
}

0 commit comments

Comments
 (0)