From: Shenghou Ma Date: Sun, 7 Oct 2012 17:54:56 +0000 (+0800) Subject: test/run.go: use correct executable filename on Windows, fix build X-Git-Tag: go1.1rc2~2219 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e8246569075c98c6cf13b158a11d0b968b1b6297;p=gostls13.git test/run.go: use correct executable filename on Windows, fix build R=golang-dev, daniel.morsing CC=golang-dev https://golang.org/cl/6624060 --- diff --git a/test/run.go b/test/run.go index c22bfb2ec3..a6464e3802 100644 --- a/test/run.go +++ b/test/run.go @@ -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