summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-06-28 16:18:27 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-06-28 16:18:27 +0200
commit40b9d4d925a92009ab916e8557c333c6e9e5d0ca (patch)
tree411de4427da330963d6702ad6317c2f9d052579d /ext
parent03dbc343c8be5c169c9c735909ab35d3bbf05a0b (diff)
downloadperl-40b9d4d925a92009ab916e8557c333c6e9e5d0ca.tar.gz
Silence warnings in test with 5.10.0
Diffstat (limited to 'ext')
-rw-r--r--ext/Safe/t/safeuniversal.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/Safe/t/safeuniversal.t b/ext/Safe/t/safeuniversal.t
index d37d7ca146..5ef384262d 100644
--- a/ext/Safe/t/safeuniversal.t
+++ b/ext/Safe/t/safeuniversal.t
@@ -14,6 +14,7 @@ BEGIN {
}
use strict;
+use warnings;
use Test::More;
use Safe;
plan(tests => 6);
@@ -22,6 +23,7 @@ my $c = new Safe;
$c->permit(qw(require caller));
my $r = $c->reval(q!
+ no warnings 'redefine';
sub UNIVERSAL::isa { "pwned" }
(bless[],"Foo")->isa("Foo");
!);
@@ -32,6 +34,7 @@ is( (bless[],"Foo")->isa("Foo"), 1, "... but not outside" );
sub Foo::foo {}
$r = $c->reval(q!
+ no warnings 'redefine';
sub UNIVERSAL::can { "pwned" }
(bless[],"Foo")->can("foo");
!);