From: ian Date: Mon, 12 Dec 2011 18:45:08 +0000 (+0000) Subject: net/http: delete temporary files. X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=77adaedc1b8c888ec7c3c5fc3409440a77bb4c1e;ds=sidebyside net/http: delete temporary files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182256 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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)))