Skip to content

Commit

Permalink
Fix pp test rewriting to not expect shbang in most tests
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Mar 29, 2010
1 parent 114d694 commit a192e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build.PL
Expand Up @@ -58,9 +58,9 @@ sub _make_pp_tests {

my $test = read_file("t/$file");

my $bang_flags = $test =~ /perl -Tw/ ? '-Tw' : '-w';
my $bang = $test =~ /perl (-\w+)/ ? "#!perl $1\n\n" : q{};
$test
= "#!/usr/bin/perl $bang_flags \n\nBEGIN { \$ENV{PV_TEST_PERL} = 1 }\n\n$test";
= $bang . "BEGIN { \$ENV{PV_TEST_PERL} = 1 }\n\n$test";

my $new_file = "t/pp_$file";
write_file( $new_file, $test );
Expand Down

0 comments on commit a192e56

Please sign in to comment.