projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
89b75a3
)
Avoid "Constant subroutine ... redefined" warning, spotted by Jerry D. Hedden.
Nicholas Clark [Tue, 31 Mar 2009 09:32:28 +0000 (10:32 +0100)]
t/op/qr_gc.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/qr_gc.t
b/t/op/qr_gc.t
index
7de3f84
..
5694269
100644
(file)
--- a/
t/op/qr_gc.t
+++ b/
t/op/qr_gc.t
@@
-4,6
+4,7
@@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
require './test.pl';
+ undef &Regexp::DESTROY;
}
plan tests => 2;
@@
-12,7
+13,6
@@
$TODO = "leaking since 32751";
my $destroyed;
{
- no warnings 'redefine';
sub Regexp::DESTROY { $destroyed++ }
}