From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2731 invoked by alias); 3 Apr 2002 01:39:13 -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 2724 invoked from network); 3 Apr 2002 01:39:12 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 3 Apr 2002 01:39:12 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 16sZk3-0006l1-00; Tue, 02 Apr 2002 20:39:15 -0500 Date: Tue, 02 Apr 2002 17:39:00 -0000 From: Daniel Jacobowitz To: Michael Snyder Cc: gdb-patches@sources.redhat.com, Andrew Cagney Subject: Re: [RFA/mi-testsuite] XFAIL mi*-console.exp Message-ID: <20020402203915.A25867@nevyn.them.org> Mail-Followup-To: Michael Snyder , gdb-patches@sources.redhat.com, Andrew Cagney References: <20020402194252.A20826@nevyn.them.org> <3CAA4F86.7CE409C8@redhat.com> <20020402200140.A21552@nevyn.them.org> <3CAA5699.FF4450A@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CAA5699.FF4450A@redhat.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-04/txt/msg00053.txt.bz2 On Tue, Apr 02, 2002 at 05:10:49PM -0800, Michael Snyder wrote: > Daniel Jacobowitz wrote: > > > > On Tue, Apr 02, 2002 at 04:40:38PM -0800, Michael Snyder wrote: > > > Daniel Jacobowitz wrote: > > > > > > > > These tests are testing for a feature that exists either nowhere or just in > > > > simulators and some remote stubs: that the inferior's output goes through > > > > GDB and is properly encoded by the MI layer. Since support isn't there for > > > > many remote debugging stubs or for native, I think these two tests should be > > > > XFAIL'd. Does that make sense, Andrew? If so, OK to commit this? > > > > > > There is a dejagnu variable that you can use to see > > > whether this is supported... lemme see... > > > > > > Ah -- here you go. You want to do something like the following: > > > > > > if { ![gdb_skip_stdio_test "Hello message"] } then { > > > do the "hello message" test... > > > > Isn't gdb_skip_stdio_test for things where there's no way at all to see > > the output? grep, grep,... > > if [target_info exists gdb,noinferiorio] { > > Well, yes... and that's only going to be true for remote stubs > and simulators that don't support sending target output thru the > gdb console. Isn't that what you want? I'm not familiar with > these tests. > > Do you also need to exclude it from running on natives? > How about > if { ![isnative && ![gdb_skip_stdio_test ... The test is checking that output passes through GDB on its way to the viewer's eye, basically - checks that MI has the chance to get at it and quote it up all properly. Remote stubs that pass output through GDB support this, but native programs are run on gdb's stdout directly at present. There's no reason it shouldn't work, though - it just doesn't right now. That's why I'd rather XFAIL than skip the tests. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer