-#!/usr/bin/env perl
use warnings;
use strict;
-use FindBin;
-use lib "$FindBin::Bin/lib";
+use lib 't/lib';
use Test::More tests => 4;
use ExporterTest qw( foo bar );
-#!/usr/bin/env perl
use warnings;
use strict;
-use FindBin;
-use lib "$FindBin::Bin/lib";
+use lib 't/lib';
use Test::More tests => 9;
use_ok('FunctionWipeout');
-#!/usr/bin/env perl
use warnings;
use strict;
-use FindBin;
-use lib "$FindBin::Bin/lib";
+use lib 't/lib';
use Test::More tests => 10;
use_ok('Inheritance');
-#!/usr/bin/env perl
use warnings;
use strict;
-use FindBin;
-use lib "$FindBin::Bin/lib";
+use lib 't/lib';
use Test::More tests => 6;
use_ok('Unimport');
-#!/usr/bin/env perl
use warnings;
use strict;
-use FindBin;
-use lib "$FindBin::Bin/lib";
+use lib 't/lib';
use Test::More tests => 6;
{ package ExceptWithArray;
-#!/usr/bin/env perl
use warnings;
use strict;
-use FindBin;
-use lib "$FindBin::Bin/lib";
+use lib 't/lib';
use Test::More tests => 2019;
use_ok('CleaneeTarget');
-#!/usr/bin/env perl
use warnings;
use strict;
-use FindBin;
-use lib "$FindBin::Bin/lib";
+use lib 't/lib';
use Test::More tests => 1;
eval { require "SyntaxError.pm" };
-#!/usr/bin/env perl
use warnings;
use strict;
-use FindBin;
-use lib "$FindBin::Bin/lib";
+use lib 't/lib';
use Test::More tests => 17;
our $pvio;
;
use Config;
-use FindBin qw($Bin);
use IPC::Open2 qw(open2);
use File::Glob 'bsd_glob';
# for the $^X-es
$ENV{PERL5LIB} = join ($Config{path_sep}, @INC);
+$ENV{PATH} = '';
# rerun the tests under the assumption of pure-perl
my $this_file = quotemeta(__FILE__);
-for my $fn (bsd_glob("$Bin/*.t")) {
+for my $fn ( bsd_glob("t/*.t") ) {
next if $fn =~ /${this_file}$/;
- my @cmd = ($^X, $fn);
+ my @cmd = map { $_ =~ /(.+)/ } ($^X, $fn);
# this is cheating, and may even hang here and there (testing on windows passed fine)
# if it does - will have to fix it somehow (really *REALLY* don't want to pull