At 11:14 PM -0700 6/4/03, Michael G Schwern wrote:
>On Wed, Jun 04, 2003 at 05:58:52PM -0500, Craig Berry wrote:
>> >Could we set up another logical root and use that instead of ../lib?
>>
>> I've been thinking of that, and we may even have tried something like that before,
>> but it gets messy trying to add /bfd_lib_root to @INC in a BEGIN block only on VMS
>> (where I guess "messy" just means I don't know how to do it).
>
>Is there any reason why:
>
> BEGIN {
> if( $^O eq 'VMS' ) {
> @INC = ('/mm_lib');
> }
> else {
> @INC = ('lib');
> }
> }
>
>wouldn't work? Assuming mm_lib was already set up in 00setup_dummy.t like
>/bfd_test_root is?
No reason except that it's not the whole story about how the MM tests set up libraries
so when I had tried something similar to that it wasn't working. Once I found and
also tweaked perl_lib() in Utils.pm I got over this hurdle. However, we're back where
we started. This whole approach of making the t/ directory appear as
BFD_TEST_ROOT:[000000] instead of BFD_TEST_ROOT:[t] buys us nothing because the six
zeros directory counts against the total when you are using relative paths from it.
I have another idea and will hopefully have a patch out shortly.
--
________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser