Subject: | t/shell.t fails on cygwin |
t/shell.t fails on cygwin. It is trying to call cmd and powershell with POSIX paths instead of a windows path. It may be possible to fix this with Cygwin::posix_to_win_path (see perlcygwin for details), but I am not sure it is worth the effort. This patch skips the tests for cmd and powershell on cygwin which I think is the correct thing to do.
fs01% git diff
diff --git a/t/shell.t b/t/shell.t
index 5e05699..12d0f55 100644
--- a/t/shell.t
+++ b/t/shell.t
@@ -56,6 +56,8 @@ for my $shell (
my $name = $shell->{name};
next
if @ARGV && !grep {$_ eq $name} @ARGV;
+ next
+ if $shell->{name} =~ /^(cmd|powershell)$/ && $^O eq 'cygwin';
$shell->{shell} = which($name) || next;
$shell->{ext} ||= $name;
$shell->{perl} ||= qq{"$^X"};