X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F51-threads-teardown.t;h=6e35ac9b0105c8ee09341170a1c962cedc5215f0;hb=197a61d6dee54ab4294ba59f7ad202f95d454018;hp=a688df8e8a92d3a1fc42278755438da9d96eaa85;hpb=bff16fe7ea455b013bb0e681f2852f6c11d72636;p=perl%2Fmodules%2Fautovivification.git diff --git a/t/51-threads-teardown.t b/t/51-threads-teardown.t index a688df8..6e35ac9 100644 --- a/t/51-threads-teardown.t +++ b/t/51-threads-teardown.t @@ -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;