]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/testcshared: delete temporary directory in test
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 21:01:46 +0000 (13:01 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 21:33:00 +0000 (21:33 +0000)
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 <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
misc/cgo/testcshared/cshared_test.go

index 833650e5e6732cdae0f89bb01fee433f80652345..8c4c3c7e579b9b76e4bb9dbfa558c74f8181d33b 100644 (file)
@@ -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"))