X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F41-threads-teardown.t;h=419ce9d8af8f56f143c76d11f0708154490dc53b;hp=64c23dc249d4f6b2a09aeacf96ed3298a62d8022;hb=refs%2Ftags%2Frt92806;hpb=8ca728cacd8b699da2f906aa02303b93415d7458 diff --git a/t/41-threads-teardown.t b/t/41-threads-teardown.t index 64c23dc..419ce9d 100644 --- a/t/41-threads-teardown.t +++ b/t/41-threads-teardown.t @@ -4,21 +4,11 @@ use strict; use warnings; use lib 't/lib'; +use VPIT::TestHelpers; use indirect::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;