From patchwork Mon Dec 12 18:45:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 130806 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 5B4681007D1 for ; Tue, 13 Dec 2011 05:45:32 +1100 (EST) Received: (qmail 8432 invoked by alias); 12 Dec 2011 18:45:30 -0000 Received: (qmail 8424 invoked by uid 22791); 12 Dec 2011 18:45:27 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Dec 2011 18:45:14 +0000 Received: by dake40 with SMTP id e40so5531213dak.20 for ; Mon, 12 Dec 2011 10:45:14 -0800 (PST) Received: by 10.50.140.1 with SMTP id rc1mr16196522igb.25.1323715513751; Mon, 12 Dec 2011 10:45:13 -0800 (PST) Received: by 10.50.140.1 with SMTP id rc1mr16196511igb.25.1323715513633; Mon, 12 Dec 2011 10:45:13 -0800 (PST) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id r18sm32976080ibh.4.2011.12.12.10.45.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 10:45:12 -0800 (PST) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: libgo patch committed: Remove temporary files Date: Mon, 12 Dec 2011 10:45:10 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This patch to libgo brings over a patch I just committed to the master library. It deletes a temporary directory and file created during a test. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r 864416b061a9 libgo/go/net/http/filetransport_test.go --- a/libgo/go/net/http/filetransport_test.go Fri Dec 09 08:46:12 2011 -0800 +++ b/libgo/go/net/http/filetransport_test.go Mon Dec 12 10:42:24 2011 -0800 @@ -7,6 +7,7 @@ import ( "io/ioutil" "net/http" + "os" "path/filepath" "testing" ) @@ -28,6 +29,8 @@ 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)))