X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F30-scope.t;h=7f31ebb3f9b23bb33d56287149464505a357d529;hp=ad4abc88d591af67b37dcacd862093c49c1829b2;hb=cd669c3d5bb3f70d040109131da334bebed3565e;hpb=a4ebcbe07de579d5877df84c114f162f49019724 diff --git a/t/30-scope.t b/t/30-scope.t index ad4abc8..7f31ebb 100644 --- a/t/30-scope.t +++ b/t/30-scope.t @@ -6,7 +6,7 @@ use warnings; my $tests; BEGIN { $tests = 18 } -use Test::More tests => (1 + $tests + 1) + 3 + 3 + 3 + 5 + 4 + 1; +use Test::More tests => (1 + $tests + 1) + 3 + 3 + 3 + 5 + 4 + 2; BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} } @@ -153,6 +153,14 @@ sub expect { is $@, '', 'RT #47902'; } +{ + my $err = eval <<' SNIP'; + use indirect::TestRequired4::a0; + indirect::TestRequired4::a0::error(); + SNIP + like $err, qr/^Can't locate object method "new" via package "X"/, 'RT #50570'; +} + __DATA__ my $a = new P1;