]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/10-args.t
Only enable the pragma during compile time
[perl/modules/indirect.git] / t / 10-args.t
index 4db490cd408f9dbfdd8e820fd8491de5ee0ea271..bb44e978fb1e346c02e01bd9db1f01f7c171e884 100644 (file)
@@ -7,7 +7,7 @@ use Test::More tests => 4 + 1 + 1;
 
 sub expect {
  my ($pkg) = @_;
- return qr/^Indirect\s+call\s+of\s+method\s+"new"\s+on\s+object\s+"$pkg"/;
+ return qr/^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+/;
 }
 
 {
@@ -46,5 +46,5 @@ HERE
   my $x = new Hooked;
   $x = new AlsoNotReached;
 HERE
is $@, "hook:Hooked:new\n", 'calls the specified hook';
like $@, qr/^hook:Hooked:new:\(eval\s+\d+\):\d+$/, 'calls the specified hook';
 }