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:
5504e6c
)
svleak.t: re-evals leak under mad
author
Father Chrysostomos
<sprout@cpan.org>
Sat, 3 Nov 2012 16:28:54 +0000
(09:28 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Mon, 5 Nov 2012 06:45:31 +0000
(22:45 -0800)
t/op/svleak.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/svleak.t
b/t/op/svleak.t
index
b3e2700
..
319866f
100644
(file)
--- a/
t/op/svleak.t
+++ b/
t/op/svleak.t
@@
-307,12
+307,13
@@
leak(2, 0, sub {
# Run-time regexp code blocks
{
use re 'eval';
+ my $madness = !!$Config{mad};
my @tests = ('[(?{})]','(?{})');
for my $t (@tests) {
- leak(2,
0
, sub {
+ leak(2,
$madness
, sub {
/ $t/;
}, "/ \$x/ where \$x is $t does not leak");
- leak(2,
0
, sub {
+ leak(2,
$madness
, sub {
/(?{})$t/;
}, "/(?{})\$x/ where \$x is $t does not leak");
}