mirror of
https://github.com/golang/go.git
synced 2024-09-22 02:48:50 +00:00
test/run.go: use correct executable filename on Windows, fix build
R=golang-dev, daniel.morsing CC=golang-dev https://golang.org/cl/6624060
This commit is contained in:
parent
54c109b122
commit
e824656907
@ -177,7 +177,7 @@ func compileInDir(runcmd runCmd, dir, name string) (out []byte, err error) {
|
||||
|
||||
func linkFile(runcmd runCmd, goname string) (err error) {
|
||||
pfile := strings.Replace(goname, ".go", "."+letter, -1)
|
||||
_, err = runcmd("go", "tool", ld, "-o", "run.out", "-L", ".", pfile)
|
||||
_, err = runcmd("go", "tool", ld, "-o", "a.exe", "-L", ".", pfile)
|
||||
return
|
||||
}
|
||||
|
||||
@ -440,7 +440,7 @@ func (t *test) run() {
|
||||
t.err = err
|
||||
return
|
||||
}
|
||||
out, err := runcmd(append([]string{filepath.Join(t.tempDir, "run.out")}, args...)...)
|
||||
out, err := runcmd(append([]string{filepath.Join(t.tempDir, "a.exe")}, args...)...)
|
||||
if err != nil {
|
||||
t.err = err
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user