diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2012-10-08 01:54:56 +0800 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2012-10-08 01:54:56 +0800 |
commit | 5ca247071158d32157ed53d9596392a516b05d9b (patch) | |
tree | 41c6c1b5caafaaad18fdfe03196a7099f293bd67 /test | |
parent | 435541be1839e4c27d6e5de41cfeb9b1a36303ba (diff) | |
download | go-5ca247071158d32157ed53d9596392a516b05d9b.tar.gz |
test/run.go: use correct executable filename on Windows, fix build
R=golang-dev, daniel.morsing
CC=golang-dev
http://codereview.appspot.com/6624060
Diffstat (limited to 'test')
-rw-r--r-- | test/run.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run.go b/test/run.go index c22bfb2ec..a6464e380 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 |