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=8e1c49f42da7671812398f92d819da04c7a41e1b;hpb=36e1f9a23b073751223769b71f1e84643913e592 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'; }