We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be41db8 commit d9ffb2dCopy full SHA for d9ffb2d
src/os/exec/exec_windows_test.go
@@ -12,6 +12,7 @@ import (
12
"io"
13
"os"
14
"os/exec"
15
+ "path/filepath"
16
"strconv"
17
"strings"
18
"syscall"
@@ -107,3 +108,16 @@ func TestChildCriticalEnv(t *testing.T) {
107
108
t.Error("no SYSTEMROOT found")
109
}
110
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