Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <42DAC1E9.2080402@familiehaase.de> Date: Sun, 17 Jul 2005 22:39:05 +0200 From: "Gerrit P. Haase" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 MIME-Version: 1.0 To: Michael G Schwern CC: Andrew Ho , cygwin AT cygwin DOT com, makemaker AT perl DOT org, perl5-porters AT perl DOT org, petdance AT cpan DOT org Subject: Re: [perl-5.8.7] Perl regression tests fail when lib directory is present References: <42D8D5F3 DOT 9060307 AT familiehaase DOT de> <42DA398D DOT 60802 AT familiehaase DOT de> <20050717195041 DOT GC5605 AT windhund DOT schwern DOT org> In-Reply-To: <20050717195041.GC5605@windhund.schwern.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Michael G Schwern wrote: > On Sun, Jul 17, 2005 at 12:57:17PM +0200, Gerrit P. Haase wrote: > >>we are on Cygwin: 1.5.18(0.132/4/2) 2005-07-02 20:30, perl is the latest >>stable release: This is perl, v5.8.7 built for cygwin-thread-multi-64int >> >>We have a problem building modules, i.e. make test fails if a .pm file >>in the source package is located below the root in a subdirectory called >>'lib'. > > > Hmm. That's very strange. Particularly the oscilating nature. The reason > its failing only when in lib/ is because '.' is in @INC so it can find > the module. If you run the tests under taint mode (which removes the .) > they should fail. Simply running the command with -t, like so: /usr/bin/perl.exe -t "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t or is this not the right way to activate taint mode? @INC: /home/gerrit/perltemp/TestModule_working/blib/lib /home/gerrit/perltemp/TestModule_working/blib/arch /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 ^^^ no . in @INC This is with the working version of TestModule (without the lib subdircetory): $ /usr/bin/perl.exe -t "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t [...] t/test5....Insecure dependency in `` while running with -t switch at /usr/lib/perl5/5.8/Test/Harness/Straps.pm line 478. Insecure $ENV{PATH} while running with -t switch at /usr/lib/perl5/5.8/Test/Harness/Straps.pm line 478. Insecure EXEC while running with -t switch at /usr/lib/perl5/5.8/Test/Harness/Straps.pm line 478. Insecure $ENV{PATH} while running with -t switch at /usr/lib/perl5/5.8/Test/Harness/Straps.pm line 291. Insecure dependency in piped open while running with -t switch at /usr/lib/perl5/5.8/Test/Harness/Straps.pm line 291. Insecure $ENV{PATH} while running with -t switch at /usr/lib/perl5/5.8/Test/Harness/Straps.pm line 291. Insecure EXEC while running with -t switch at /usr/lib/perl5/5.8/Test/Harness/Straps.pm line 291. t/test5....ok All tests successful. Files=6, Tests=6, 2 wallclock secs ( 1.04 cusr + 1.01 csys = 2.05 CPU) > I'm going to guess somethign wacky is going on inside Test::Harness. What > version is being used? Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/