]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: write test file to temporary directory
authorAndrew Gerrand <adg@golang.org>
Mon, 18 Apr 2016 03:25:51 +0000 (13:25 +1000)
committerAndrew Gerrand <adg@golang.org>
Fri, 22 Apr 2016 02:01:10 +0000 (02:01 +0000)
Before this change, a go-vendor-issue-14613 file would be left in the
working directory after tests run.

Change-Id: If1858421bb287215ab4a19163f489131b2e8912c
Reviewed-on: https://go-review.googlesource.com/22169
Reviewed-by: Chris Broadfoot <cbro@golang.org>
src/cmd/go/vendor_test.go

index bcb5082311cc7768fa730f484d5f5af1c90862fd..e3070e8e4508a2378fcd675a2a6ff17555feee58 100644 (file)
@@ -241,7 +241,7 @@ func TestVendorTest3(t *testing.T) {
        tg.setenv("GOPATH", tg.path("."))
        tg.run("get", "github.com/clsung/go-vendor-issue-14613")
 
-       tg.run("build", "-i", "github.com/clsung/go-vendor-issue-14613")
+       tg.run("build", "-o", tg.path("a.out"), "-i", "github.com/clsung/go-vendor-issue-14613")
 
        // test folder should work
        tg.run("test", "-i", "github.com/clsung/go-vendor-issue-14613")