X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FShell.t;h=c76628c4ce03905a605109332b6afad5dc4a5e25;hb=97a504ba76c612b4a75b812be186d7ed5f1593ef;hp=106cd2a51d6098d877a742c472ed724099137736;hpb=670c206d1fe305b38dfbb1e20e5c966dc1f8e9e6;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Shell.t b/lib/Shell.t index 106cd2a..c76628c 100644 --- a/lib/Shell.t +++ b/lib/Shell.t @@ -1,8 +1,10 @@ #!./perl BEGIN { - chdir 't' if -d 't'; - @INC = '../lib'; + if( $ENV{PERL_CORE} ) { + chdir 't' if -d 't'; + @INC = '../lib'; + } } use Test::More tests => 7; @@ -26,6 +28,8 @@ while ( -f $tmpfile ) { } END { -f $tmpfile && (open STDERR, '>&SAVERR' and unlink $tmpfile) } +no warnings 'once'; +# no false warning about Name "main::SAVERR" used only once: possible typo open(SAVERR, ">&STDERR"); open(STDERR, ">$tmpfile");