From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19333 invoked by alias); 23 Jul 2004 14:46:27 -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 19326 invoked from network); 23 Jul 2004 14:46:26 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 23 Jul 2004 14:46:26 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1Bo1Ia-0002qz-Lv; Fri, 23 Jul 2004 10:45:24 -0400 Date: Fri, 23 Jul 2004 14:46:00 -0000 From: Daniel Jacobowitz To: Michael Elizabeth Chastain Cc: gdb-patches@sources.redhat.com Subject: Re: [rfc/testsuite] editor.exp: new test script for "edit" command Message-ID: <20040723144524.GA10859@nevyn.them.org> Mail-Followup-To: Michael Elizabeth Chastain , gdb-patches@sources.redhat.com References: <20040723064726.104F74B104@berman.michael-chastain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040723064726.104F74B104@berman.michael-chastain.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-07/txt/msg00325.txt.bz2 On Fri, Jul 23, 2004 at 02:47:26AM -0400, Michael Chastain wrote: > I'm particularly interested in whether this bit of TCL is okay: > > if { [file exists $actual_file] } then { > ... > } else { > ... > } > > Should I use "file exists ..." or "remote_file build exists ..." here? > > This is just RFC so far. I need to understand the remote issue, > and I suspect that I'm going to need a lot of "remote_file ..." > stuff to create various files on the build system and manipulate > them there. Two things: - DejaGNU assumes that "build" is where tests are being run. There's never a need to use remote_file build. Sometimes it is good for consistency, but see the next point. - GDB's testsuite assumes that host and build are the same. So I don't know if the consistency is worth it unless someone cares about separating them. -- Daniel Jacobowitz