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
(from parent 1:
3c37a49
)
t/op/blocks.t: tests for RT #113934
author
Dan Collins
<dcollinsn@gmail.com>
Wed, 21 Sep 2016 14:08:26 +0000
(10:08 -0400)
committer
Yves Orton
<demerphq@gmail.com>
Fri, 21 Oct 2016 07:09:44 +0000
(09:09 +0200)
t/op/blocks.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/blocks.t
b/t/op/blocks.t
index
0c6e945
..
1673733
100644
(file)
--- a/
t/op/blocks.t
+++ b/
t/op/blocks.t
@@
-6,7
+6,7
@@
BEGIN {
set_up_inc('../lib');
}
-plan tests => 1
0
;
+plan tests => 1
1
;
my @expect = qw(
b1
@@
-156,3
+156,6
@@
TODO: {
local $TODO = 'RT #2917: INIT{} in eval is wrongly considered too late';
fresh_perl_is('eval "INIT { print qq(in init); };";', 'in init', {}, 'RT #2917: No constraint on how late INIT blocks can run');
}
+
+fresh_perl_is('eval "BEGIN {goto end}"; end:', '', {}, 'RT #113934: goto out of BEGIN causes assertion failure');
+