This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
More test tweaks
authorFather Chrysostomos <sprout@cpan.org>
Sat, 9 Nov 2013 14:56:42 +0000 (06:56 -0800)
committerRicardo Signes <rjbs@cpan.org>
Tue, 14 Jan 2014 14:33:01 +0000 (09:33 -0500)
lib/B/Deparse-core.t
lib/B/Deparse.t
lib/locale.t
t/op/coresubs.t

index f839e88..60702c6 100644 (file)
@@ -40,6 +40,7 @@ plan tests => 2071;
 
 use feature (sprintf(":%vd", $^V)); # to avoid relying on the feature
                                     # logic to add CORE::
+no warnings 'experimental::aggref';
 use B::Deparse;
 my $deparse = new B::Deparse;
 
@@ -92,6 +93,7 @@ sub testit {
 
        unless ($got_text =~ /^{
     package test;
+    BEGIN {\${\^WARNING_BITS} = "[^"]*"}
     use strict 'refs', 'subs';
     use feature [^\n]+
     \Q$vars\E\(\) = (.*)
index 904251a..47feb4b 100644 (file)
@@ -10,7 +10,6 @@ BEGIN {
 }
 
 use warnings;
-no  warnings 'experimental::aggref';
 use strict;
 use Test::More;
 
@@ -977,6 +976,7 @@ tr/a/b/r;
 <a,>;
 ####
 # [perl #91008]
+# CONTEXT no warnings 'experimental::aggref';
 each $@;
 keys $~;
 values $!;
index fee2fc8..641e858 100644 (file)
@@ -2035,6 +2035,7 @@ foreach $test_num ($first_locales_test_number..$final_locales_test_number) {
            print "# not in Perl itself.\n";
        }
         if ($Okay{$test_num} && grep { $_ == $test_num } @problematical_tests) {
+            no warnings 'experimental::aggref';
             # Round to nearest .1%
             my $percent_fail = (int(.5 + (1000 * scalar(keys $Problem{$test_num})
                                           / scalar(@Locale))))
index 86118bc..2e93c71 100644 (file)
@@ -25,9 +25,17 @@ my %unsupported = map +($_=>1), qw (
 );
 my %args_for = (
   dbmopen  => '%1,$2,$3',
-  dbmclose => '%1',
+ (dbmclose => '%1',
+  keys     =>
+  values   =>
+  each     =>)[0,1,2,1,3,1,4,1],
   delete   => '$1[2]',
   exists   => '$1[2]',
+ (push     => '@1',
+  pop      =>
+  shift    =>
+  unshift  =>
+  splice   =>)[0,1,2,1,3,1,4,1,5,1],
 );
 my %desc = (
   pos => 'match position',