]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testplugin: let TestMain run deferred functions
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 21:05:33 +0000 (13:05 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 21:33:27 +0000 (21:33 +0000)
commit7dc3d9f85f424445a49577aad33e576992c1f67d
tree5113d46b34d30cbe7e3c247924aa912f43267c35
parent4aff88ded24c575bed9c1c0d1fc149eab405111a
misc/cgo/testplugin: let TestMain run deferred functions

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

Updates #30500

Change-Id: I4a5c7ddb8218a8bd056c8733c3cb9feb895e77a0
Reviewed-on: https://go-review.googlesource.com/c/164859
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
misc/cgo/testplugin/plugin_test.go