]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/21-bad.t
Fix "meth meth" not being correctly reported
[perl/modules/indirect.git] / t / 21-bad.t
index 3b9985f21729d0c0cf766d70a3b91f68cdb26020..1d2fab9342529662108d811d04f89aab7b1f52d7 100644 (file)
@@ -9,7 +9,7 @@ package main;
 use strict;
 use warnings;
 
 use strict;
 use warnings;
 
-use Test::More tests => 50 * 6 + 2;
+use Test::More tests => 52 * 6 + 2;
 
 my ($obj, $x);
 our ($y, $bloop);
 
 my ($obj, $x);
 our ($y, $bloop);
@@ -17,9 +17,9 @@ our ($y, $bloop);
 sub expect {
  my ($pkg) = @_;
  qr/^warn:Indirect\s+call\s+of\s+method\s+
 sub expect {
  my ($pkg) = @_;
  qr/^warn:Indirect\s+call\s+of\s+method\s+
-     "(?:new|meh|$pkg$pkg)"
+     "(?:new|meh|feh|$pkg$pkg)"
      \s+on\s+object\s+
      \s+on\s+object\s+
-     "(?:$pkg|newnew|\$(?:[xyz_\$]|(?:sploosh::)?sploosh|(?:main::)?bloop))"
+     "(?:$pkg|newnew|feh|\$(?:[xyz_\$]|(?:sploosh::)?sploosh|(?:main::)?bloop))"
      \s+at\s+\(eval\s+\d+\)\s+line\s+\d+
    /x
 }
      \s+at\s+\(eval\s+\d+\)\s+line\s+\d+
    /x
 }
@@ -196,6 +196,10 @@ $obj = new newnew;
 ####
 $obj = new newnew; # new newnew
 ####
 ####
 $obj = new newnew; # new newnew
 ####
+$obj = feh feh;
+####
+$obj = feh feh; # feh feh
+####
 new Hlagh (meh $x)
 ####
 Hlagh->new(meh $x)
 new Hlagh (meh $x)
 ####
 Hlagh->new(meh $x)