From: Nicholas Clark Date: Sun, 11 Oct 2009 13:06:22 +0000 (+0100) Subject: Remove core @INC setting and chdir boilerplate from SelfLoader's tests. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6af60d5fdae744e61d3a0d95ecbaf1c098867f14;p=p5sagit%2Fp5-mst-13.2.git Remove core @INC setting and chdir boilerplate from SelfLoader's tests. --- diff --git a/dist/SelfLoader/t/01SelfLoader.t b/dist/SelfLoader/t/01SelfLoader.t index 68c1229..2471076 100644 --- a/dist/SelfLoader/t/01SelfLoader.t +++ b/dist/SelfLoader/t/01SelfLoader.t @@ -1,5 +1,4 @@ BEGIN { - chdir 't' if -d 't'; $dir = "self-$$"; $sep = "/"; @@ -9,7 +8,6 @@ BEGIN { } unshift @INC, $dir; - unshift @INC, '../lib'; print "1..20\n"; diff --git a/dist/SelfLoader/t/02SelfLoader-buggy.t b/dist/SelfLoader/t/02SelfLoader-buggy.t index 7845d05..fd565f9 100644 --- a/dist/SelfLoader/t/02SelfLoader-buggy.t +++ b/dist/SelfLoader/t/02SelfLoader-buggy.t @@ -1,10 +1,3 @@ -BEGIN { - if( $ENV{PERL_CORE} ) { - chdir 't' if -d 't'; - @INC = '../lib'; - } -} - use SelfLoader; print "1..1\n";