in reply to Re: "make test" problems with previously installed module
in thread "make test" problems with previously installed module

i've tried:  perl -Mblib t/02_bad_constructor.t to no avail.

i even tried adding a  use lib ("./t/testlib") in the .t script, but that didn't do it either.

i am genuinely stumped.

Replies are listed 'Best First'.
Re^3: "make test" problems with previously installed module
by Tanktalus (Canon) on Sep 08, 2005 at 23:55 UTC

    As long as you're mangling the test script anyway, I'd start with a dumping of @INC to see what's there, then a manual check of each directory in order to ensure that the module you think should be there is there. And the use lib line you've posted probably should warrant a check of the current working directory to ensure it's relative to where you think it should be. ;-)

      well, i added
      print "DIR: _$ \n" foreach @INC;
      and the results were pretty obvious ... the first directory is the site_perl directory that's throwing the errors (because the tests won't pass on the installed version ), and the second directory is the one added via command line.