From 77adaedc1b8c888ec7c3c5fc3409440a77bb4c1e Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 12 Dec 2011 18:45:08 +0000 Subject: [PATCH] net/http: delete temporary files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182256 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/go/net/http/filetransport_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libgo/go/net/http/filetransport_test.go b/libgo/go/net/http/filetransport_test.go index 265a3b903e9..039926b5382 100644 --- a/libgo/go/net/http/filetransport_test.go +++ b/libgo/go/net/http/filetransport_test.go @@ -7,6 +7,7 @@ package http_test import ( "io/ioutil" "net/http" + "os" "path/filepath" "testing" ) @@ -28,6 +29,8 @@ func TestFileTransport(t *testing.T) { fname := filepath.Join(dname, "foo.txt") err = ioutil.WriteFile(fname, []byte("Bar"), 0644) check("WriteFile", err) + defer os.Remove(dname) + defer os.Remove(fname) tr := &http.Transport{} tr.RegisterProtocol("file", http.NewFileTransport(http.Dir(dname))) -- 2.11.0