Also eliminate the $|=1, as it's really not necessary for tests that neither
fork nor shell out to other processes.
#!/usr/bin/perl
-use warnings;
-use strict;
BEGIN {
- chdir 't';
- require './test.pl';
+ @INC = '..' if -f '../TestInit.pm';
}
+use TestInit qw(T); # T is chdir to the top level
-plan('no_plan');
+use warnings;
+use strict;
-$|=1;
+require 't/test.pl';
+plan('no_plan');
# --make-exceptions-list outputs the list of strings that don't have
# perldiag.pod entries to STDERR without TAP formatting, so they can
# Just add the documentation instead.
my $make_exceptions_list = ($ARGV[0]||'') eq '--make-exceptions-list';
-chdir '..' or die "Can't chdir ..: $!";
-BEGIN { defined $ENV{PERL_UNICODE} and push @INC, "lib"; }
+require 'regen/embed_lib.pl';
my @functions;