]> git.pld-linux.org Git - packages/perl.git/commitdiff
- http://public.activestate.com/cgi-bin/perlbrowse/p/33265
authorradek <radek@pld-linux.org>
Sat, 13 Dec 2008 13:45:49 +0000 (13:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-attribute_error.patch -> 1.1

perl-attribute_error.patch [new file with mode: 0644]

diff --git a/perl-attribute_error.patch b/perl-attribute_error.patch
new file mode 100644 (file)
index 0000000..60b4a5d
--- /dev/null
@@ -0,0 +1,42 @@
+--- perl-5.10.0/t/comp/require.t.orig  2007-12-18 11:47:08.000000000 +0100
++++ perl-5.10.0/t/comp/require.t       2008-12-13 14:24:44.344895352 +0100
+@@ -15,7 +15,7 @@
+ my $Is_EBCDIC = (ord('A') == 193) ? 1 : 0;
+ my $Is_UTF8   = (${^OPEN} || "") =~ /:utf8/;
+-my $total_tests = 49;
++my $total_tests = 50;
+ if ($Is_EBCDIC || $Is_UTF8) { $total_tests -= 3; }
+ print "1..$total_tests\n";
+@@ -258,6 +258,20 @@
+     }
+ }
++#  [perl #49472] Attributes + Unkown Error
++
++{
++    do_require
++      'use strict;sub MODIFY_CODE_ATTRIBUTE{} sub f:Blah {$nosuchvar}';
++    my $err = $@;
++    $err .= "\n" unless $err =~ /\n$/;
++    unless ($err =~ /Global symbol "\$nosuchvar" requires /) {
++      $err =~ s/^/# /mg;
++      print "${err}not ";
++    }
++    print "ok ", ++$i, " [perl #49472]\n";
++}
++
+ ##########################################
+ # What follows are UTF-8 specific tests. #
+ # Add generic tests before this point.   #
+--- perl-5.10.0/toke.c.orig    2007-12-18 11:47:08.000000000 +0100
++++ perl-5.10.0/toke.c 2008-12-13 14:24:47.805309079 +0100
+@@ -692,6 +692,7 @@
+ #else
+     parser->nexttoke = 0;
+ #endif
++    parser->error_count = oparser ? oparser->error_count : 0;
+     parser->copline = NOLINE;
+     parser->lex_state = LEX_NORMAL;
+     parser->expect = XSTATE;
This page took 0.157041 seconds and 4 git commands to generate.