Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <42DAC1E9.2080402@familiehaase.de>
Date: Sun, 17 Jul 2005 22:39:05 +0200
From: "Gerrit P. Haase" <gerrit@familiehaase.de>
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 <schwern@pobox.com>
CC: Andrew Ho <andrew@tellme.com>, cygwin@cygwin.com, makemaker@perl.org,
   perl5-porters@perl.org, petdance@cpan.org
Subject: Re: [perl-5.8.7] Perl regression tests fail when lib directory is  present
References: <Pine.GSO.4.62.0507160052140.18081@shell02.corp.tellme.com> <42D8D5F3.9060307@familiehaase.de> <Pine.GSO.4.62.0507161219350.18081@shell02.corp.tellme.com> <42DA398D.60802@familiehaase.de> <20050717195041.GC5605@windhund.schwern.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/

