From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25495 invoked by alias); 12 Jul 2004 21:43:14 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25468 invoked from network); 12 Jul 2004 21:43:12 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 12 Jul 2004 21:43:12 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6CLhCe3008356 for ; Mon, 12 Jul 2004 17:43:12 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6CLh6013192; Mon, 12 Jul 2004 17:43:08 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 230FC2B9D; Mon, 12 Jul 2004 17:42:55 -0400 (EDT) Message-ID: <40F305DE.8090805@gnu.org> Date: Mon, 12 Jul 2004 21:43:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [commit] cleanup annota*.exp ``cleanup core file'' messages Content-Type: multipart/mixed; boundary="------------020500050209060302050607" X-SW-Source: 2004-07/txt/msg00122.txt.bz2 This is a multi-part message in MIME format. --------------020500050209060302050607 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 172 Hello, Dependant on your system, and how other tests went, the annota[13].exp tests output different ``cleanup core file'' messages. This fixes that. committed, Andrew --------------020500050209060302050607 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 2323 2004-07-12 Andrew Cagney * gdb.base/annota1.exp: Cleanup corefile test name. * gdb.base/annota3.exp: Ditto. Index: gdb.base/annota1.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota1.exp,v retrieving revision 1.13 diff -p -u -r1.13 annota1.exp --- gdb.base/annota1.exp 6 Nov 2003 20:50:47 -0000 1.13 +++ gdb.base/annota1.exp 12 Jul 2004 21:37:52 -0000 @@ -459,20 +459,20 @@ gdb_expect { } -# Check for production of a core file -# and remove it! +# Check for production of a core file and remove it! set exec_output [remote_exec build "ls core"] +set test "cleanup core file" if [ regexp "core not found" $exec_output] { - pass "No core dumped" + pass "$test (not dumped)" } else { - if [ regexp "No such file or directory" $exec_output] { - pass "No core dumped" - } else { - remote_exec build "rm -f core" - pass "Core dumped and removed" - } + if [ regexp "No such file or directory" $exec_output] { + pass "$test (not dumped)" + } else { + remote_exec build "rm -f core" + pass "$test (removed)" + } } # restore the original prompt for the rest of the testsuite Index: gdb.base/annota3.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota3.exp,v retrieving revision 1.2 diff -p -u -r1.2 annota3.exp --- gdb.base/annota3.exp 17 Aug 2003 16:50:59 -0000 1.2 +++ gdb.base/annota3.exp 12 Jul 2004 21:37:52 -0000 @@ -387,20 +387,20 @@ gdb_expect_list "signal sent" "$gdb_prom } -# Check for production of a core file -# and remove it! +# Check for production of a core file and remove it! set exec_output [remote_exec build "ls core"] +set test "cleanup core file" if [ regexp "core not found" $exec_output] { - pass "No core dumped" + pass "$test (not dumped)" } else { - if [ regexp "No such file or directory" $exec_output] { - pass "No core dumped" - } else { - remote_exec build "rm -f core" - pass "Core dumped and removed" - } + if [ regexp "No such file or directory" $exec_output] { + pass "$test (not dumped)" + } else { + remote_exec build "rm -f core" + pass "$test (removed)" + } } # restore the original prompt for the rest of the testsuite --------------020500050209060302050607--