X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=blobdiff_plain;f=t%2Fshell.t;h=047d49c57cd7c69d9d65e50cd8cc51e406794e0e;hp=54f92512e5cdb7e57b912d183b66a66a85dc4b50;hb=1d89f85b87644d20299afa0574a9b4d780f333ee;hpb=edcdb0112e8158f70297802e0980faa8e44d722c 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;