X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fautovivification.git;a=blobdiff_plain;f=t%2F51-threads-teardown.t;h=6e35ac9b0105c8ee09341170a1c962cedc5215f0;hp=164a047d09923d502a1db630c693a41e25db7099;hb=197a61d6dee54ab4294ba59f7ad202f95d454018;hpb=9ef6276ffc1c3943d1b167876079649480efafd7 diff --git a/t/51-threads-teardown.t b/t/51-threads-teardown.t index 164a047..6e35ac9 100644 --- a/t/51-threads-teardown.t +++ b/t/51-threads-teardown.t @@ -4,21 +4,11 @@ use strict; use warnings; use lib 't/lib'; +use VPIT::TestHelpers; use autovivification::TestThreads; use Test::Leaner tests => 1; -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; -} - SKIP: { skip 'Fails on 5.8.2 and lower' => 1 if "$]" <= 5.008_002;