From: Andrew Gerrand Date: Mon, 18 Apr 2016 03:25:51 +0000 (+1000) Subject: cmd/go: write test file to temporary directory X-Git-Tag: go1.7beta1~544 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b563fcfabba559646b42b0ff2066fc98042d8a8a;p=gostls13.git cmd/go: write test file to temporary directory 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 --- diff --git a/src/cmd/go/vendor_test.go b/src/cmd/go/vendor_test.go index bcb5082311..e3070e8e45 100644 --- a/src/cmd/go/vendor_test.go +++ b/src/cmd/go/vendor_test.go @@ -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")