Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Corinna Vinschen <vinschen@redhat.com>
To: gdb@sources.redhat.com
Subject: Re: failures in fileio.exp
Date: Thu, 12 Jun 2003 12:24:00 -0000	[thread overview]
Message-ID: <20030612122452.GR30116@cygbert.vinschen.de> (raw)
In-Reply-To: <3EE86D0F.8070409@redhat.com>

On Thu, Jun 12, 2003 at 08:07:43AM -0400, Andrew Cagney wrote:
> >On Wed, Jun 11, 2003 at 03:30:14PM -0700, David Carlton wrote:
> >
> >>I'm seeing these failures in fileio.exp:
> >>
> >>FAIL: gdb.base/fileio.exp: Stat a NULL pathname returns ENOENT
> >>FAIL: gdb.base/fileio.exp: System with invalid command returns 127
> >>FAIL: gdb.base/fileio.exp: Renaming a nonexistant file returns ENOENT
> >>FAIL: gdb.base/fileio.exp: Unlinking a nonexistant file returns ENOENT
> >>FAIL: gdb.base/fileio.exp: Time(2) returns feasible values
> >>
> >>This is on Red Hat 8.0 (i686-pc-linux-gnu), GCC 3.1.  I'll include the
> >>gdb.log below, if it helps.
> >
> >
> >Fileio.exp only works for remote targets and then only for targets on
> >which the fileio protocol is implemented.  I've added a conditional
> >which only runs the test on remote targets.
> 
> My understanding from the thread discussing fileio.exp:
> http://sources.redhat.com/ml/gdb-patches/2003-06/msg00410.html
> was that it should work native.  Restricting it to the remote case would 
> leave it open to bit rot.
> 
> The above indicate that this is true.  The differences are minor syscall 
> nuances and can be handled with a bit of testsuite tweaking.

It's totally nonsense to test on a native target.  In that case you're
testing the operating system, not the fileio protocol, which is the
task of that test.  Tweaking the testcase is even making things worse
since it's *strictly* defined how the fileio code works and what
return codes and error codes are expected.  If you're going to weaken
the testcase by allowing different results just for the sake of running
a useless test, that's IMHO counterproductive.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com


  reply	other threads:[~2003-06-12 12:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-11 22:30 David Carlton
2003-06-12  9:50 ` Corinna Vinschen
2003-06-12 12:07   ` Andrew Cagney
2003-06-12 12:24     ` Corinna Vinschen [this message]
2003-06-14 16:47       ` 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=20030612122452.GR30116@cygbert.vinschen.de \
    --to=vinschen@redhat.com \
    --cc=gdb@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