From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4013 invoked by alias); 8 Sep 2003 11:42:07 -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 4006 invoked from network); 8 Sep 2003 11:42:06 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 8 Sep 2003 11:42:06 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h88Bg5l18064 for ; Mon, 8 Sep 2003 07:42:05 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h88Bg3L12283 for ; Mon, 8 Sep 2003 07:42:04 -0400 Received: from cygbert.vinschen.de (vpn50-12.rdu.redhat.com [172.16.50.12]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h88Bg2w00827 for ; Mon, 8 Sep 2003 04:42:03 -0700 Received: by cygbert.vinschen.de (Postfix, from userid 500) id 1ECD95804E; Mon, 8 Sep 2003 13:42:01 +0200 (CEST) Date: Mon, 08 Sep 2003 11:42:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: [RFA] testsuite/gdb.base/bang.exp: Allow trailing text after "Program exited normally" Message-ID: <20030908114200.GG1859@cygbert.vinschen.de> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2003-09/txt/msg00109.txt.bz2 Hi, while testing I found that a test for ending the program in gdb.base/bang.exp failed, even though the target had actually exited normally. The cause of the FAIL is that bang.exp doesn't expect anything after the string "Program exited normally.". On the sh target at least, the output after exiting contains a bit more text: Program exited normally. [Switching to process 0] Since that trailing output after a normal exit doesn't change anything with respect to the testresult, I propose to allow trailing characters: * testsuite/gdb.base/bang.exp: Allow trailing text after "Program exited normally." string. Index: testsuite/gdb.base/bang.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/bang.exp,v retrieving revision 1.1 diff -u -p -r1.1 bang.exp --- testsuite/gdb.base/bang.exp 24 Jun 2003 22:04:06 -0000 1.1 +++ testsuite/gdb.base/bang.exp 8 Sep 2003 11:29:38 -0000 @@ -36,6 +36,6 @@ gdb_load ${binfile} # Verify that we can run the program and that it terminates normally. gdb_test "run" \ - ".*Program exited normally\." \ + ".*Program exited normally\..*" \ "run program" Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc.