]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: reenable cgo test
authorAlan Donovan <adonovan@google.com>
Fri, 16 Nov 2018 15:43:21 +0000 (10:43 -0500)
committerAlan Donovan <adonovan@google.com>
Fri, 16 Nov 2018 17:51:20 +0000 (17:51 +0000)
commit55e1fc930b3a4efe4ac8ad74ff7844be4c7ef162
tree33e0a3197024880336fc66a3a5ede5f4dc22cd30
parentb7ba5233550cadd2b06c4b98c702b45e7904f7ae
cmd/vet: reenable cgo test

The reason the 386 trybot was happy but 'GOARCH=386 go test cmd/vet'
was not is that CgoEnabled defaults to false in a cross build;
I have no idea why. Now we ask the go command for the effective
value so that the test works in both cases.

Also, remove stale comment.

Fixes #28829

Change-Id: I1210af34da6986f47924059de5c1f08b2824ace9
Reviewed-on: https://go-review.googlesource.com/c/149958
Run-TryBot: Alan Donovan <adonovan@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/vet/vet_test.go