From patchwork Sun Oct 9 19:38:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 118611 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 0EC8CB6F9D for ; Mon, 10 Oct 2011 06:39:01 +1100 (EST) Received: (qmail 10426 invoked by alias); 9 Oct 2011 19:38:55 -0000 Received: (qmail 10418 invoked by uid 22791); 9 Oct 2011 19:38:54 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 09 Oct 2011 19:38:38 +0000 Received: by yxj17 with SMTP id 17so5693637yxj.20 for ; Sun, 09 Oct 2011 12:38:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.77.233 with SMTP id d69mr20049033yhe.84.1318189118221; Sun, 09 Oct 2011 12:38:38 -0700 (PDT) Received: by 10.147.116.13 with HTTP; Sun, 9 Oct 2011 12:38:38 -0700 (PDT) Date: Sun, 9 Oct 2011 21:38:38 +0200 Message-ID: Subject: [PATCH, testsuite]: Remove *.gdb files from testsuite dir From: Uros Bizjak To: gcc-patches@gcc.gnu.org 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 Hello! Attached patch removes *.gdb temporary files from testsuite directory. 2011-10-09 Uros Bizjak * lib/gcc-gdb-test.exp (gdb-test): Delete $cmd_file before return. Tested on x86_64-pc-linux-gnu {,-m32}. OK for mainline and branches? Uros. Index: gcc-gdb-test.exp =================================================================== --- gcc-gdb-test.exp (revision 179718) +++ gcc-gdb-test.exp (working copy) @@ -56,6 +56,7 @@ set res [remote_spawn target "$gdb_name -nx -nw -quiet -x $cmd_file ./$output_file"] if { $res < 0 || $res == "" } { unsupported "$testname" + file delete $cmd_file return } @@ -64,6 +65,7 @@ -re "Unhandled dwarf expression|Error in sourced command file" { unsupported "$testname" remote_close target + file delete $cmd_file return } -re {[\n\r]\$1 = ([^\n\r]*)[\n\r]+\$2 = ([^\n\r]*)[\n\r]} { @@ -76,16 +78,19 @@ fail "$testname" } remote_close target + file delete $cmd_file return } timeout { unsupported "$testname" remote_close target + file delete $cmd_file return } } + unsupported "$testname" remote_close target - unsupported "$testname" + file delete $cmd_file return }