use Test::More tests => 4 + 1 + 1;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
sub expect {
my ($pkg) = @_;
qr/^Indirect call of method "new" on object "$pkg" at \(eval \d+\) line \d+/;
use Test::More tests => 3 * 4;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
sub expect {
my ($pkg, $line) = @_;
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+$line/;
use Test::More tests => 56 * 8;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
my ($obj, $pkg, $cb, $x, @a);
our $y;
sub meh;
use Test::More tests => 3 * (4 * $tests + $reports) + 4;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
my ($obj, $x);
our ($y, $bloop);
use Test::More tests => 3 * 9;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
sub meh;
my @warns;
use Test::More tests => 1;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
{
my @warns;
{
use Test::More tests => (1 + $tests + 1) + 3 + 3 + 3 + 5 + 1;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
use lib 't/lib';
my %wrong = map { $_ => 1 } 2, 3, 5, 7, 9, 10, 14, 15, 17, 18;
use Test::More;
BEGIN {
+ delete $ENV{PERL_INDIRECT_PM_DISABLE};
require indirect;
if (indirect::I_THREADSAFE()) {
plan tests => 10 * 2 * (2 + 3);
use Test::More tests => 1;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
eval "require indirect::Test0::Oooooo::Pppppppp";
is($@, '', 'memory reallocation to an uncatched optype');
use Test::More tests => 2 * $count;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
for (1 .. $count) {
my @errs;
{
use Test::More tests => 1;
+BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
+
sub run_perl {
my $code = shift;