From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21823 invoked by alias); 8 Sep 2003 18:52:32 -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 21815 invoked from network); 8 Sep 2003 18:52:31 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 8 Sep 2003 18:52:31 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id BDE442B7F; Mon, 8 Sep 2003 14:52:28 -0400 (EDT) Message-ID: <3F5CCFEC.4090007@redhat.com> Date: Mon, 08 Sep 2003 18:52:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz , Corinna Vinschen Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] testsuite/gdb.base/bang.exp: Allow trailing text after "Program exited normally" References: <20030908114200.GG1859@cygbert.vinschen.de> <20030908132716.GA17563@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00122.txt.bz2 > On Mon, Sep 08, 2003 at 01:42:01PM +0200, Corinna Vinschen wrote: > >> 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: > > > But isn't the [Switching to process 0] a bug? We aren't switching > processes, the inferior is dead. Yes. The message is both a bug and a very long standing regression. Andrew PS: Suggest a reminder comment that SIGNALED is really "terminated with signal" :-)