]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - t/51-threads-teardown.t
Use run_perl() from VPIT::TestHelpers
[perl/modules/autovivification.git] / t / 51-threads-teardown.t
index a688df8e8a92d3a1fc42278755438da9d96eaa85..6e35ac9b0105c8ee09341170a1c962cedc5215f0 100644 (file)
@@ -4,23 +4,14 @@ 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   = $ENV{SystemRoot};
- local %ENV;
- $ENV{SystemRoot} = $SystemRoot if $^O eq 'MSWin32' and defined $SystemRoot;
-
- system { $^X } $^X, '-T', map("-I$_", @INC), '-e', $code;
-}
-
 SKIP:
 {
- skip 'Fails on 5.8.2 and lower' => 1 if "$]" <= 5.008002;
+ skip 'Fails on 5.8.2 and lower' => 1 if "$]" <= 5.008_002;
 
  my $status = run_perl <<' RUN';
   my $code = 1 + 2 + 4;