From: Nicholas Clark Date: Tue, 13 Oct 2009 14:25:03 +0000 (+0100) Subject: do subname() is deprecated, so tests for it need no warnings 'deprecated'; X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=96ccdd02f19e8749808107cd642a6001ab8033fc;p=p5sagit%2Fp5-mst-13.2.git do subname() is deprecated, so tests for it need no warnings 'deprecated'; --- diff --git a/t/op/do.t b/t/op/do.t index 0fec534..e47441a 100644 --- a/t/op/do.t +++ b/t/op/do.t @@ -33,13 +33,19 @@ print "1..50\n"; # Test do &sub and proper @_ handling. $_[0] = 0; -$result = do foo1(1); +{ + no warnings 'deprecated'; + $result = do foo1(1); +} ok( $result eq 'value', ":$result: eq :value:" ); ok( $_[0] == 0 ); $_[0] = 0; -$result = do foo2(0,1,0); +{ + no warnings 'deprecated'; + $result = do foo2(0,1,0); +} ok( $result eq 'value', ":$result: eq :value:" ); ok( $_[0] == 0 ); @@ -50,10 +56,16 @@ sub blather { ok 1 foreach @_; } -do blather("ayep","sho nuff"); +{ + no warnings 'deprecated'; + do blather("ayep","sho nuff"); +} @x = ("jeepers", "okydoke"); @y = ("uhhuh", "yeppers"); -do blather(@x,"noofie",@y); +{ + no warnings 'deprecated'; + do blather(@x,"noofie",@y); +} unshift @INC, '.';