Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't permit running with autodie < 2.12
autodie obliterated the IO layers set by the open pragma prior to version 2.12, so now we refuse to run with autodie before that bug was fixed. RT #54777: autodie loses open pragma GH #7: autodie breaks the open set by utf8::all
- Loading branch information
Showing
4 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
utf8-all* | ||
.build | ||
*.orig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use strict; | ||
use warnings; | ||
use Test::More; | ||
use Capture::Tiny qw(capture_merged); | ||
|
||
my @code = ( | ||
q{use autodie; use utf8::all; 1}, | ||
q{use utf8::all; use autodie; 1} | ||
); | ||
plan tests => 2*@code; | ||
|
||
foreach my $code_str (@code) { | ||
note $code_str; | ||
my $output = capture_merged sub { system( $^X, '-e', $code_str ) }; | ||
like $output => qr/CHECK/, 'failed b/c of the CHECK block' or diag $output; | ||
like $output => qr/autodie.*2\.12/, q{failed b/c of autodie wasn't new enough} or diag $output; | ||
} |