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