Permalink
Browse files

chmod has a portability issue under Win32 (see perlport)

  • Loading branch information...
charsbar committed Feb 27, 2014
1 parent 7eae1a8 commit 5516ab9c07441dedde25fc5ce81cee01edcc2c89
Showing with 3 additions and 0 deletions.
  1. +3 −0 t/work_dir/dist.t
View
@@ -71,7 +71,10 @@ subtest 'dist' => sub {
ok($tar->contains_file('Acme-Foo-0.01/empty.txt'), 'Contains empty.txt in archive');
my ($executable) = $tar->get_files('Acme-Foo-0.01/executable.pl');
+SKIP: {
+ skip "chmod has a portability issue under Windows", 1 if $^O eq 'MSWin32';
is($executable->mode & (S_IRWXU|S_IRWXG|S_IRWXO), 0755, 'Contains executable file');
+ }
};
done_testing;

0 comments on commit 5516ab9

Please sign in to comment.