]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/21-bad.t
Also pass the file and the line number to the hook
[perl/modules/indirect.git] / t / 21-bad.t
index c480d6c0a4720dca3a614caab688f33a6ba5da55..3b9985f21729d0c0cf766d70a3b91f68cdb26020 100644 (file)
@@ -16,7 +16,12 @@ our ($y, $bloop);
 
 sub expect {
  my ($pkg) = @_;
- return qr/^warn:Indirect call of method "(?:new|meh|$pkg$pkg)" on object "(?:$pkg|newnew|\$(?:[xyz_\$]|(?:sploosh::)?sploosh|(?:main::)?bloop))"/
+ qr/^warn:Indirect\s+call\s+of\s+method\s+
+     "(?:new|meh|$pkg$pkg)"
+     \s+on\s+object\s+
+     "(?:$pkg|newnew|\$(?:[xyz_\$]|(?:sploosh::)?sploosh|(?:main::)?bloop))"
+     \s+at\s+\(eval\s+\d+\)\s+line\s+\d+
+   /x
 }
 
 {