X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=blobdiff_plain;f=t%2F81-threads-teardown.t;h=c60e14f1aa1695f0d3c4b01b8b7dacd8c3913e45;hp=741d2242e506b8216c4dd9b2ab716522298cf813;hb=4c22d853712b16da554eac5525819366b1dec494;hpb=05e35b66f2a12a2416a5964be485a4f741682a47 diff --git a/t/81-threads-teardown.t b/t/81-threads-teardown.t index 741d224..c60e14f 100644 --- a/t/81-threads-teardown.t +++ b/t/81-threads-teardown.t @@ -4,21 +4,11 @@ use strict; use warnings; use lib 't/lib'; +use VPIT::TestHelpers; use Lexical::Types::TestThreads; use Test::More 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; -} - { my $status = run_perl <<' RUN'; { package IntX; package IntY; package IntZ; }