Message-ID: <
9b18b3110610181151i3ca438cdied769ebaa4255079@mail.gmail.com>
change test files that do a require "./test.pl"; without a BEGIN block
to ensure prototypes are seen, plus fix any breakage this reveals.
p4raw-id: //depot/perl@29056
}
}
-require "./test.pl";
+BEGIN { require "./test.pl"; }
use Devel::Peek;
}
}
-require "./test.pl";
+BEGIN { require "./test.pl"; }
plan(tests => 65);
use POSIX qw(fcntl_h signal_h limits_h _exit getcwd open read strftime write
my $Invoke_Perl = qq(MCR $perl "-I[-.lib]");
-require "./test.pl";
+BEGIN { require "./test.pl"; }
plan(tests => 25);
SKIP: {
@INC = '../lib';
}
-require "./test.pl";
+BEGIN { require "./test.pl"; }
plan( tests => 60 );
eval '%@x=0;';
}
}
-require "./test.pl";
+BEGIN { require "./test.pl"; }
plan(tests => 15);
@INC = '../lib';
}
-require "./test.pl";
+BEGIN { require "./test.pl"; }
plan(tests => 22);
no utf8; # needed for use utf8 not griping about the raw octets
-require "./test.pl";
+BEGIN { require "./test.pl"; }
plan(tests => 55);
print F chr(0x100);
close(F);
- isnt( defined $@ );
+ isnt( defined $@, !0 );
undef $@;
open F, ">a";
print F chr(0x100);
close(F);
- isnt( defined $@ );
+ isnt( defined $@, !0 );
no warnings 'utf8';
print F chr(0x100);
close(F);
- isnt( defined $@ );
+ isnt( defined $@, !0 );
use warnings 'utf8';
@INC = qw(../lib);
}
-require "./test.pl";
+BEGIN { require "./test.pl"; }
plan( tests => 13 );
}
}
-require "./test.pl";
+BEGIN { require "./test.pl"; }
plan(tests => 6);
@INC = qw(../lib lib);
}
-require "./test.pl";
+BEGIN { require "./test.pl"; }
# This test depends on t/lib/Devel/switchd.pm.
@INC = '../lib';
}
-require "./test.pl";
+BEGIN { require "./test.pl"; }
plan(tests => 31);