This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/testsuite] New testcase for set/unset/show substitute-path


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]