develooper Front page | perl.perl5.porters | Postings from November 2003

Re: [PATCH 5.8.2 @21574] make tests relocatable

Thread Previous
From:
Ilya Zakharevich
Date:
November 7, 2003 01:27
Subject:
Re: [PATCH 5.8.2 @21574] make tests relocatable
Message ID:
20031107092721.GB4497@math.berkeley.edu
On Fri, Nov 07, 2003 at 12:56:05AM -0800, Michael G Schwern wrote:
> On Fri, Nov 07, 2003 at 12:14:26AM -0800, Ilya Zakharevich wrote:
> >   b)    cd t; mv perl perl-hidden; PERL=`pwd`/perl-hidden ./pert-hidden TEST
> > 
> >      should succeed (the last time I checked, some tests were not
> >      paying attension to $PERL).
> 
> It looks like TEST honors $ENV{PERL}.  Individual tests shouldn't have to
> know about $ENV{PERL}.  $^X should work, no? 

Given that it is not universally reliable, it should not be used in
individual tests.  Hmm, when running from a fixed directory, it may
work nevertheless.  Anyway, as the above experiment shows (or at least
showed the first time I reported this problem), things can be improved.

Hope this helps,
Ilya

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About