plan skip_all => "PP tests already executed"
if $ENV{NAMESPACE_CLEAN_USE_PP};
-eval { require B::Hooks::EndOfScope }
+eval { require Variable::Magic }
or plan skip_all => "PP tests already executed";
-eval { require Devel::Hide }
- or plan skip_all => "Devel::Hide required for this test in presence of B::Hooks::EndOfScope";
+$ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION} = 'PP';
+require B::Hooks::EndOfScope;
+ok( ($INC{'B/Hooks/EndOfScope/PP.pm'} && ! $INC{'B/Hooks/EndOfScope/XS.pm'}),
+ 'PP BHEOS loaded properly');
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);
+
# rerun the tests under the assumption of pure-perl
my $this_file = quotemeta(__FILE__);
-for my $fn (glob("$Bin/*.t")) {
+for my $fn (bsd_glob("$Bin/*.t")) {
next if $fn =~ /${this_file}$/;
- local $ENV{DEVEL_HIDE_VERBOSE} = 0;
- my @cmd = ( $^X, '-MDevel::Hide=B::Hooks::EndOfScope', $fn );
+ my @cmd = ($^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