File tree 2 files changed +1
-15
lines changed
2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ func (c *Cmd) Start() error {
643
643
return c .Err
644
644
}
645
645
lp := c .Path
646
- if c .cacheLookExtensions = = "" {
646
+ if c .cacheLookExtensions ! = "" {
647
647
lp = c .cacheLookExtensions
648
648
}
649
649
if runtime .GOOS == "windows" && c .cacheLookExtensions == "" {
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import (
12
12
"io"
13
13
"os"
14
14
"os/exec"
15
- "path/filepath"
16
15
"strconv"
17
16
"strings"
18
17
"syscall"
@@ -108,16 +107,3 @@ func TestChildCriticalEnv(t *testing.T) {
108
107
t .Error ("no SYSTEMROOT found" )
109
108
}
110
109
}
111
-
112
- func TestIssue66586 (t * testing.T ) {
113
- testenv .MustHaveGoBuild (t )
114
- path := filepath .Join (testenv .GOROOT (t ), "bin" , "go" )
115
- cmd := exec.Cmd {Path : path , Args : []string {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
- }
You can’t perform that action at this time.
0 commit comments