summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2007-12-11 08:35:55 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-12-11 21:02:22 +0000
commite67ed6948b0e6164946ef34f55b86ed0976bc4ff (patch)
tree8a4279660d5d3487d8ee74f9fd6e9221670848c3
parent187a0176da285209f351a4626ff8b1c74ba2d5ee (diff)
downloadperl-e67ed6948b0e6164946ef34f55b86ed0976bc4ff.tar.gz
Must have /bin under Cygwin
From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510712111035u7f8da6e8h1a1cbd9d85d27c03@mail.gmail.com> p4raw-id: //depot/perl@32611
-rw-r--r--t/test.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/test.pl b/t/test.pl
index b492c777c5..e10f78da58 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -397,6 +397,7 @@ my $is_mswin = $^O eq 'MSWin32';
my $is_netware = $^O eq 'NetWare';
my $is_macos = $^O eq 'MacOS';
my $is_vms = $^O eq 'VMS';
+my $is_cygwin = $^O eq 'cygwin';
sub _quote_args {
my ($runperl, $args) = @_;
@@ -530,6 +531,7 @@ sub runperl {
join $sep, grep { $_ ne "" and $_ ne "." and -d $_ and
($is_mswin or $is_vms or !(stat && (stat _)[2]&0022)) }
split quotemeta ($sep), $1;
+ $ENV{PATH} .= "$sep/bin" if $is_cygwin; # Must have /bin under Cygwin
$runperl =~ /(.*)/s;
$runperl = $1;