X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=t%2F17-ctl.t;h=c9dd4ca6426c7149d400e3550689c5156756fcd8;hp=19dd8649f41aef264fed2a4874ef48bdbc682a84;hb=c248088d736c15d3d88ed92a3e7d475f80a9d415;hpb=31d52b1760f1736186f4652cacb3636e4f96f3ba diff --git a/t/17-ctl.t b/t/17-ctl.t index 19dd864..c9dd4ca 100644 --- a/t/17-ctl.t +++ b/t/17-ctl.t @@ -5,6 +5,9 @@ use warnings; use Test::More tests => 4 * 8 + 4 * (2 * 6 + 1) + 10 + 1 + 1; +use lib 't/lib'; +use VPIT::TestHelpers; + use Variable::Magic qw; sub expect { @@ -342,17 +345,6 @@ eval q{BEGIN { like $@, expect('tomato', undef, "\nBEGIN.*"), 'die in BEGIN in eval triggers hints hash destructor'; -sub run_perl { - my $code = shift; - - 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; -} - my $has_capture_tiny = do { local $@; eval {