Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@redhat.com>
To: gdb-patches <gdb-patches@sources.redhat.com>
Subject: Re: [RFA]: testsuite/gdb.base/a2-bin.exp: Consider  `needs_status_wrapper' target_info
Date: Mon, 21 Jan 2002 08:12:00 -0000	[thread overview]
Message-ID: <3C4C3DBB.DC92B06C@redhat.com> (raw)
In-Reply-To: <20011205211708.I29719@cygbert.vinschen.de>

Daniel's observation is valid in general, i.e., if we can't test
something we must say "unsupported" (BTW, the vxworks version of
this test uses it wrong -- it seems it should be fail in that case).

W.r.t. this specific test though Corinna is right: the goal of the
test is to see if the program returns the "Usage" message when called
with no arguments.  If the return code was the only thing tested 
we would say "unsupported".  (We cant say "1/2 unsupported",
which could be the more exact description :-)

Check it in please Corinna.
Thanks for the fix.

Fernando

P.S.: And thanks to Daniel for reviewing and watching over the details.



Corinna Vinschen wrote:
> 
> On Wed, Dec 05, 2001 at 02:54:40PM -0500, Daniel Jacobowitz wrote:
> > On Wed, Dec 05, 2001 at 08:25:07PM +0100, Corinna Vinschen wrote:
> > > 2001-12-05  Corinna Vinschen  <vinschen@redhat.com>
> > >
> > >     * gdb.base/a2-bin.exp: Pass first test even if the return
> > >     code is 0 if target_info `needs_status_wrapper' exists.
> >
> > Please don't turn this into a PASS; it didn't really test anything as I
> > read it.  "unsupported" is probably the appropriate return code.
> 
> I don't think so.  The test tests that the application returns
> it's usage so it has tested that the application got it's argc
> correctly.  That's what the test is for, right?  It's just an
> _additional_ test that the return code is 1.  It's not GDB's
> fault that the target can't return the return code correctly.
> 
> Corinna

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


  parent reply	other threads:[~2002-01-21 16:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-05 11:25 Corinna Vinschen
2001-12-05 11:55 ` Daniel Jacobowitz
2001-12-05 12:17   ` Corinna Vinschen
2001-12-05 12:29     ` Daniel Jacobowitz
2002-01-21  8:12     ` Fernando Nasser [this message]
2002-01-20 16:08 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C4C3DBB.DC92B06C@redhat.com \
    --to=fnasser@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox