From: Ian Lance Taylor Date: Fri, 1 Mar 2019 21:01:46 +0000 (-0800) Subject: misc/cgo/testcshared: delete temporary directory in test X-Git-Tag: go1.13beta1~1272 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4aff88ded24c575bed9c1c0d1fc149eab405111a;p=gostls13.git misc/cgo/testcshared: delete temporary directory in test The deferred os.RemoveAll was accidentally committed as commented out in the original https://golang.org/cl/87158. Updates #30500 Change-Id: Idc5195816d7978253760dbfd78fde6d22c456296 Reviewed-on: https://go-review.googlesource.com/c/164858 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Daniel Martí --- diff --git a/misc/cgo/testcshared/cshared_test.go b/misc/cgo/testcshared/cshared_test.go index 833650e5e6..8c4c3c7e57 100644 --- a/misc/cgo/testcshared/cshared_test.go +++ b/misc/cgo/testcshared/cshared_test.go @@ -521,7 +521,7 @@ func TestCachedInstall(t *testing.T) { if err != nil { t.Fatal(err) } - // defer os.RemoveAll(tmpdir) + defer os.RemoveAll(tmpdir) copyFile(t, filepath.Join(tmpdir, "src", "testcshared", "go.mod"), "go.mod") copyFile(t, filepath.Join(tmpdir, "src", "testcshared", "libgo", "libgo.go"), filepath.Join("libgo", "libgo.go"))