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:
Shenghou Ma 2012-10-08 01:54:56 +08:00
parent 54c109b122
commit e824656907

View File

@ -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