Ilya Zakharevich wrote: > It is crucial that an individual test can be run without the > intervention of TEST: > > ./perl t/op/stat.t > > to provide as small "Perl-related environment" as possible. E.g., > consider line-ending bugs; if > > ./perl t/TEST op/stat.t > > fails, I do not know whether I should debug t/TEST, or t/op/stat.t. In the ./perl case you already have to set LD_LIBRARY_PATH to get it to work if you build with libperl.so, setting PERL5LIB in the environment is hardly a great burden. The problem with the existing "BEGIN { ... }" junk is that it BREAKS any attempt to use PERL5LIB as it forcibly overwrites @INC, so you can't run the tests from anywhere other than $SRC/t. Adding yet another environment variable (PERLTEST_KEEP_INC) seems to be overly complicated whe we could just rip out all the BEGIN blocks, get TEST to set PERL5LIB properly and simplify the whole mess. -- Alan Burlison --Thread Previous | Thread Next