X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F41-threads-teardown.t;h=419ce9d8af8f56f143c76d11f0708154490dc53b;hp=42d4ae8e282151cbc4eb40db6c8fea8c24067b99;hb=80b62f6c27bec43d996676dbd0bff15b6027255f;hpb=1868a5983f5045def63a5cc7edf41454b407f66c diff --git a/t/41-threads-teardown.t b/t/41-threads-teardown.t index 42d4ae8..419ce9d 100644 --- a/t/41-threads-teardown.t +++ b/t/41-threads-teardown.t @@ -4,23 +4,14 @@ 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 = $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, @expected);