From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24984 invoked by alias); 12 Jun 2003 12:24:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24958 invoked from network); 12 Jun 2003 12:24:57 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 12 Jun 2003 12:24:57 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h5CCOuH28356 for ; Thu, 12 Jun 2003 08:24:56 -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 h5CCOtT29229 for ; Thu, 12 Jun 2003 08:24:56 -0400 Received: from cygbert.vinschen.de (vpn50-25.rdu.redhat.com [172.16.50.25]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h5CCOsw09519 for ; Thu, 12 Jun 2003 05:24:54 -0700 Received: by cygbert.vinschen.de (Postfix, from userid 500) id D459B58110; Thu, 12 Jun 2003 14:24:52 +0200 (CEST) Date: Thu, 12 Jun 2003 12:24:00 -0000 From: Corinna Vinschen To: gdb@sources.redhat.com Subject: Re: failures in fileio.exp Message-ID: <20030612122452.GR30116@cygbert.vinschen.de> Reply-To: gdb@sources.redhat.com Mail-Followup-To: gdb@sources.redhat.com References: <20030612095036.GP30116@cygbert.vinschen.de> <3EE86D0F.8070409@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EE86D0F.8070409@redhat.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-06/txt/msg00200.txt.bz2 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