Re: [patch] decrufting OptreeCheck stuff
[p5sagit/p5-mst-13.2.git] / ext / B / t / optree_varinit.t
index 25260b8..8748f29 100644 (file)
@@ -13,12 +13,7 @@ BEGIN {
         print "1..0 # Skip -- Perl configured without B module\n";
         exit 0;
     }
-    if ($Config::Config{'extensions'} !~ /\bData\/Dumper\b/) {
-       print
-           "1..0 # Skip: Data::Dumper was not built, needed by OptreeCheck\n";
-       exit 0;
-    }
-    require 'test.pl';
+    # require 'test.pl'; # now done by OptreeCheck
 }
 use OptreeCheck;
 use Config;
@@ -114,6 +109,7 @@ EONT_EONT
 
 checkOptree ( name     => 'local $a',
              prog      => 'local $a',
+             errs      => ['Name "main::a" used only once: possible typo at -e line 1.'],
              bcopts    => '-basic',
              expect    => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
 4  <@> leave[1 ref] vKP/REFC ->(end)
@@ -229,6 +225,7 @@ EONT_EONT
 
 checkOptree ( name     => 'local $a=undef',
              prog      => 'local $a=undef',
+             errs      => ['Name "main::a" used only once: possible typo at -e line 1.'],
              note      => 'locals are rare, probly not worth doing',
              bcopts    => '-basic',
              expect    => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
@@ -343,6 +340,7 @@ EONT_EONT
 
 checkOptree ( name     => 'local $a=()',
              prog      => 'local $a=()',
+             errs      => ['Name "main::a" used only once: possible typo at -e line 1.'],
               #todo    => 'probly not worth doing',
              bcopts    => '-exec',
              expect    => <<'EOT_EOT', expect_nt => <<'EONT_EONT');