projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c782d7e
)
Stop diag.t from skipping yyerror messages
author
Father Chrysostomos
<sprout@cpan.org>
Sat, 16 Nov 2013 23:55:30 +0000
(15:55 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 17 Nov 2013 21:08:43 +0000
(13:08 -0800)
yyerror does not take aTHX_, but diag.t was expecting aTHX_ on all
warn/croak calls.
Yes, this causes massive failures.
t/porting/diag.t
patch
|
blob
|
history
diff --git
a/t/porting/diag.t
b/t/porting/diag.t
index
df6e1b3
..
97b887d
100644
(file)
--- a/
t/porting/diag.t
+++ b/
t/porting/diag.t
@@
-40,7
+40,7
@@
my $source_msg_re =
"(?<routine>\\bDIE\\b|$function_re|$regcomp_fail_re)";
my $text_re = '"(?<text>(?:\\\\"|[^"]|"\s*[A-Z_]+\s*")*)"';
my $source_msg_call_re = qr/$source_msg_re(?:_nocontext)? \s*
- \(
aTHX_
\s*
+ \(
(?:aTHX_)?
\s*
(?:packWARN\d*\((?<category>.*?)\),)? \s*
$text_re /x;
my $bad_version_re = qr{BADVERSION\([^"]*$text_re};