This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/testsuite] New testcase for set/unset/show substitute-path
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 6 Oct 2006 11:20:52 -0700
- Subject: Re: [RFA/testsuite] New testcase for set/unset/show substitute-path
- References: <20060808230045.GF19846@adacore.com> <20061005194918.GB10269@nevyn.them.org>
> 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