]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/80-regressions.t
Fix test failures with 5.12 on Windows where Strawberry Perl crashes because the...
[perl/modules/indirect.git] / t / 80-regressions.t
index 7d05c823bb941ba2696c64243b54e91189dc5e20..e717bdfe6447e333eca31860d68746e6c3537dec 100644 (file)
@@ -5,14 +5,19 @@ use warnings;
 
 use Test::More tests => 1;
 
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
 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;
 }
 
 {
- my $status = run_perl 'no indirect; print "a\x{100}b" =~ /\A[\x00-\x7f]*\z/;';
+ my $status = run_perl 'no indirect; qq{a\x{100}b} =~ /\A[\x00-\x7f]*\z/;';
  is $status, 0, 'RT #47866';
 }