This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Create proper Cygwin $ENV{PATH} in test.pl
authorJerry D. Hedden <jdhedden@cpan.org>
Tue, 16 Nov 2010 15:44:02 +0000 (10:44 -0500)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 17 Nov 2010 04:40:12 +0000 (20:40 -0800)
commit59aae9bd33055ccfc97baf9341df5d03d55934ed
treefc5c9c11e556b49851ef8f699f8c0ee431b99d08
parent24e05dcb39b36ab68d1926496cf195f222ec5caf
Create proper Cygwin $ENV{PATH} in test.pl

For Cygwin, runperl() in test.pl adds ':/bin' to $ENV{PATH}.  However, if
$ENV{PATH} is initially empty, the leading colon causes the following error:

Insecure directory in $ENV{PATH} while running with -T switch at ./test.pl line 566.

This fix sets $ENV{PATH} to just '/bin' when it's intially empty.
t/test.pl