This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
RT 130010: add regression test.
authorJames E Keenan <jkeenan@cpan.org>
Thu, 10 Nov 2016 01:56:15 +0000 (20:56 -0500)
committerKarl Williamson <khw@cpan.org>
Sat, 12 Nov 2016 08:48:59 +0000 (09:48 +0100)
t/re/pat_advanced.t

index 5eb2cc5..08f4f53 100644 (file)
@@ -2433,6 +2433,15 @@ EOF
                         'No segfault [perl #126886]');
     }
 
+    {
+        # [perl 130010]  Downstream application texinfo started to report panics
+        # as of commit a5540cf.
+
+        runperl( prog => 'A::xx(); package A; sub InFullwidth{ return qq|\n| } sub xx { split /[^\s\p{InFullwidth}]/, q|x| }' );
+        ok(! $?, "User-defined pattern did not cause panic [perl 130010]");
+    }
+
+
     # !!! NOTE that tests that aren't at all likely to crash perl should go
     # a ways above, above these last ones.  There's a comment there that, like
     # this comment, contains the word 'NOTE'