From: Graham Knop Date: Thu, 2 Jan 2014 02:03:57 +0000 (-0500) Subject: don't try to test cmd or powershell on cygwin X-Git-Tag: v2.000004~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1d89f85b87644d20299afa0574a9b4d780f333ee;p=p5sagit%2Flocal-lib.git don't try to test cmd or powershell on cygwin --- diff --git a/t/shell.t b/t/shell.t index 54f9251..047d49c 100644 --- a/t/shell.t +++ b/t/shell.t @@ -35,15 +35,17 @@ for my $shell ( }, { name => 'cmd', - opt => '/D /C', + opt => '/Q /D /C', ext => 'bat', perl => qq{@"$^X"}, + skip => $^O eq 'cygwin', }, { name => 'powershell', - opt => '-NoProfile -ExecutionPolicy Unrestricted', + opt => '-NoProfile -ExecutionPolicy Unrestricted -File', ext => 'ps1', perl => qq{& '$^X'}, + skip => $^O eq 'cygwin', }, ) { my $name = $shell->{name}; @@ -58,7 +60,7 @@ for my $shell ( next; } } - elsif (!$shell->{shell}) { + elsif ($shell->{skip} || !$shell->{shell}) { next; } push @shells, $shell;