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
--
=^..^=

Reply via email to