]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: let TestMain run deferred functions
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 21:08:30 +0000 (13:08 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 21:32:30 +0000 (21:32 +0000)
commit1cd6d8b974517e6c0506d3959a9ad08f98e89902
tree1a8e681ff50fa367b51ac7c4dd927f6491a25b6d
parentb45f5b5e16c8176c909b441ebfa731cd6ff0cd63
cmd/vet: let TestMain run deferred functions

Split TestMain into two functions so that we can defer cleanups.

Updates #30500

Change-Id: I1fa7957be0779c079ec4d221a8321b45ddb973e2
Reviewed-on: https://go-review.googlesource.com/c/164860
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/cmd/vet/vet_test.go