From b563fcfabba559646b42b0ff2066fc98042d8a8a Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 18 Apr 2016 13:25:51 +1000 Subject: [PATCH] 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 --- src/cmd/go/vendor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/vendor_test.go b/src/cmd/go/vendor_test.go index bcb5082311c..e3070e8e450 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")