On Saturday, February 22, 2003, at 09:14 PM, [EMAIL PROTECTED] wrote:

Thanks again. (I already replied once to say that I'm positive PERL5LIB was set, but somehow this hasn't made it to the list yet.) The problem, it seems, is that the "-I/System/Library/Perl" overrides it :-( Viz. the difference if I run the tests manually with and without this flag:


[localhost:~/Getopt-ArgvFile-1.06] fz% echo $PERL5LIB
/Volumes/Unix/usrlocal/lib/perl5
[localhost:~/Getopt-ArgvFile-1.06] fz% perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
t/prefix............FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
Failed Test Status Wstat Total Fail Failed List of failed
----------------------------------------------------------------------- --------
t/base.t 5 5 100.00% 1-5
t/prefix.t 2 2 100.00% 1-2
Failed 2/2 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay.
[localhost:~/Getopt-ArgvFile-1.06] fz% echo $PERL5LIB
/Volumes/Unix/usrlocal/lib/perl5
Files=2, Tests=7, 2 wallclock secs ( 0.85 cusr + 0.31 csys = 1.16 CPU)
[localhost:~/Getopt-ArgvFile-1.06] fz% perl -Iblib/arch -Iblib/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base......ok
t/prefix....ok
All tests successful.
Files=2, Tests=7, 1 wallclock secs ( 0.86 cusr + 0.37 csys = 1.23 CPU)


So, is there a workaround to force the use of the newer Test::Harness in "make test"?


That's a pain. You could probably do this:

make test PERL_ARCHLIB=/foo/darwin PERL_LIB=/foo

If I were you, though, I'd just install Test::Harness into the standard /Library/Perl/ (Apple knows this is the location users will be installing modules into, that's what that directory is for), and install with

sudo make install UNINST=1

which will remove the ones in /System/Library/Perl/ .

-Ken

Reply via email to