From: Vincent Pit Date: Mon, 3 Jan 2011 11:40:59 +0000 (+0100) Subject: Fix test failures with Strawberry Perl 5.12 X-Git-Tag: v0.10~8 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=commitdiff_plain;h=c03d14b5eed6696196ad91bd7a7b3a3bbb1a2b97 Fix test failures with Strawberry Perl 5.12 perl crashes because the SystemRoot environment variable is missing. --- diff --git a/t/31-threads-teardown.t b/t/31-threads-teardown.t index 632293b..2354e60 100644 --- a/t/31-threads-teardown.t +++ b/t/31-threads-teardown.t @@ -30,7 +30,10 @@ BEGIN { 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; }