]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/41-threads-teardown.t
Use run_perl() from VPIT::TestHelpers
[perl/modules/indirect.git] / t / 41-threads-teardown.t
index 64c23dc249d4f6b2a09aeacf96ed3298a62d8022..419ce9d8af8f56f143c76d11f0708154490dc53b 100644 (file)
@@ -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<SystemRoot PATH>};
- 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;