From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22796 invoked by alias); 6 Oct 2006 18:21:19 -0000 Received: (qmail 22787 invoked by uid 22791); 6 Oct 2006 18:21:17 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 06 Oct 2006 18:20:54 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id E3B8948CDF6 for ; Fri, 6 Oct 2006 14:20:52 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23299-01-4 for ; Fri, 6 Oct 2006 14:20:52 -0400 (EDT) Received: from takamaka.act-europe.fr (unknown [70.71.0.212]) by nile.gnat.com (Postfix) with ESMTP id 9C0D148CBDE for ; Fri, 6 Oct 2006 14:20:52 -0400 (EDT) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 1018E47F00; Fri, 6 Oct 2006 11:20:52 -0700 (PDT) Date: Fri, 06 Oct 2006 18:21:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: [RFA/testsuite] New testcase for set/unset/show substitute-path Message-ID: <20061006182052.GG980@adacore.com> References: <20060808230045.GF19846@adacore.com> <20061005194918.GB10269@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061005194918.GB10269@nevyn.them.org> User-Agent: Mutt/1.4i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00061.txt.bz2 > As for functionality testing, I would recommend doing it like this. > There's already some samples of creating files and directories during > testing (e.g. corefile.exp, commands.exp). Use that to make two > directories. Put a source file with different contents in each but the > same basename. Compile and debug one of them without issuing a "dir" > command, unlike most of the existing tests, and verify that we find the > file we expect. Then, use "info source" and look for "Compilation > directory"; and that should be all you need to use substitute-path to > point at the other directory, and verify that now list shows the second > file. > > Sound reasonable? No rush - just offering the suggestion. Excellent. Thanks a lot for the recommendations! -- Joel