]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/30-scope.t
Also pass the file and the line number to the hook
[perl/modules/indirect.git] / t / 30-scope.t
index 1e1dcf3d8fe7c2123521fc89cb70e6c3e3467da4..f769de66fe59e2d721e0a82671d76aea7c01c69e 100644 (file)
@@ -12,7 +12,7 @@ my %wrong = map { $_ => 1 } 2, 3, 5, 7, 9, 10, 14, 15, 17, 18;
 
 sub expect {
  my ($pkg) = @_;
- return qr/^warn:Indirect\s+call\s+of\s+method\s+"new"\s+on\s+object\s+"$pkg"/;
+ return qr/^warn:Indirect\s+call\s+of\s+method\s+"new"\s+on\s+object\s+"$pkg"\s+at\s+\(eval\s+\d+\)\s+line\s+\d+/;
 }
 
 {