Skip to content

Commit

Permalink
cmd/go: write test file to temporary directory
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
adg committed Apr 22, 2016
1 parent 8082828 commit b563fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/go/vendor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b563fcf

Please sign in to comment.