X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F17-ctl.t;h=ef1be224438280d5825de3fc9b8df7b002252d66;hb=78d307d30a1fa82e6b8e7ba95c617d9b87eb4d45;hp=92a4c0cc7930d5a9d3dc8a7c1e74185d464bc747;hpb=3bc98bdbdb230943e7fb3135e325f10013acac2d;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/17-ctl.t b/t/17-ctl.t index 92a4c0c..ef1be22 100644 --- a/t/17-ctl.t +++ b/t/17-ctl.t @@ -216,9 +216,10 @@ like $@, expect('tomato', undef, "\nBEGIN.*"), sub run_perl { my $code = shift; - my $SystemRoot = $ENV{SystemRoot}; + my ($SystemRoot, $PATH) = @ENV{qw}; local %ENV; $ENV{SystemRoot} = $SystemRoot if $^O eq 'MSWin32' and defined $SystemRoot; + $ENV{PATH} = $PATH if $^O eq 'cygwin' and defined $PATH; system { $^X } $^X, '-T', map("-I$_", @INC), '-e', $code; } @@ -269,9 +270,11 @@ use Variable::Magic qw; BEGIN { cast %::, wizard fetch => sub { die CODE skip 'Test code didn\'t run properly' => $count unless defined $output; my $suffix = "\nExecution(?s:.*)"; - if ($] >= 5.011005) { + if ("$]" >= 5.017) { + $suffix = "(?:\nsalsify at -e line \\d+.){16}" . $suffix; + } elsif ("$]" >= 5.011_005) { $suffix = "(?:\nsalsify at -e line \\d+.){12}" . $suffix; - } elsif ($] >= 5.011) { + } elsif ("$]" >= 5.011) { $suffix = "(?:\nsalsify at -e line \\d+.){3}" . $suffix; } like $output, expect('salsify', '-e', $suffix),