043a6d409ddfb929420e6aca10e469d7dc30f232
package ExtUtils
::testlib
;
# So the tests can chdir around and not break @INC.
# We use getcwd() because otherwise rel2abs will blow up under taint
# mode pre-5.8. We detaint is so @INC won't be tainted. This is
# no worse, and probably better, than just shoving an untainted,
# relative "blib/lib" onto @INC.
($cwd) = getcwd
() =~ /(.*)/;
use lib
map File
::Spec
->rel2abs($_, $cwd), qw(blib/arch blib/lib);
ExtUtils::testlib - add blib/* directories to @INC
After an extension has been built and before it is installed it may be
desirable to test it bypassing C<make test>. By adding
to a test program the intermediate directories used by C<make> are