Test-TempDir-Tiny
view release on metacpan or search on metacpan
lib/Test/TempDir/Tiny.pm view on Meta::CPAN
}
}
# for testing
sub _root_dir { return $ROOT_DIR }
END {
# only clean up in original process, not children
if ( $$ == $ORIGINAL_PID ) {
# our clean up must run after Test::More sets $? in its END block
if ( $] lt "5.008000" ) {
*Test::TempDir::Tiny::_CLEANER::DESTROY = \&_cleanup;
*blob = bless( {}, 'Test::TempDir::Tiny::_CLEANER' );
}
else {
require B;
push @{ B::end_av()->object_2svref }, \&_cleanup;
}
}
}
( run in 0.911 second using v1.01-cache-2.11-cpan-cc502c75498 )