This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bde562
)
Regression test for RT #129196
author
Dan Collins
<dcollinsn@gmail.com>
Sun, 4 Sep 2016 18:43:41 +0000
(14:43 -0400)
committer
Father Chrysostomos
<sprout@cpan.org>
Mon, 5 Sep 2016 04:29:48 +0000
(21:29 -0700)
t/op/evalbytes.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/evalbytes.t
b/t/op/evalbytes.t
index
9b77c8e
..
9a09ba9
100644
(file)
--- a/
t/op/evalbytes.t
+++ b/
t/op/evalbytes.t
@@
-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';
+