]> Cypherpunks repositories - gostls13.git/commitdiff
test/run.go: use correct executable filename on Windows, fix build
authorShenghou Ma <minux.ma@gmail.com>
Sun, 7 Oct 2012 17:54:56 +0000 (01:54 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Sun, 7 Oct 2012 17:54:56 +0000 (01:54 +0800)
R=golang-dev, daniel.morsing
CC=golang-dev
https://golang.org/cl/6624060

test/run.go

index c22bfb2ec396ab4c96a7eaa1d3bec44e7285610e..a6464e38024a2a0cb183848548bf7c9cda49cd74 100644 (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