X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F10-args.t;h=bb44e978fb1e346c02e01bd9db1f01f7c171e884;hp=4db490cd408f9dbfdd8e820fd8491de5ee0ea271;hb=cfbd22399e253cbac1aad5436d2b191082befe14;hpb=f0156ba56d815d220b7f943d5f34cd726488c5db diff --git a/t/10-args.t b/t/10-args.t index 4db490c..bb44e97 100644 --- a/t/10-args.t +++ b/t/10-args.t @@ -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'; }