This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Regression test for RT #129196
authorDan Collins <dcollinsn@gmail.com>
Sun, 4 Sep 2016 18:43:41 +0000 (14:43 -0400)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 5 Sep 2016 04:29:48 +0000 (21:29 -0700)
t/op/evalbytes.t

index 9b77c8e..9a09ba9 100644 (file)
@@ -7,7 +7,7 @@ BEGIN {
     require './charset_tools.pl';
 }
 
-plan(tests => 8);
+plan(tests => 9);
 
 {
     local $SIG{__WARN__} = sub {};
@@ -34,3 +34,7 @@ chop($upcode = "use utf8; $U_100" . chr 256);
 is evalbytes $upcode, chr 256, 'use utf8 within evalbytes on utf8 string';
 eval { evalbytes chr 256 };
 like $@, qr/Wide character/, 'evalbytes croaks on non-bytes';
+
+eval 'evalbytes S';
+ok 1, '[RT #129196] evalbytes S should not segfault';
+