Skip to content

Commit

Permalink
Merge pull request #20 from pauloscustodio/master
Browse files Browse the repository at this point in the history
Fix build in Windows/msys2
  • Loading branch information
glasswalk3r committed Apr 16, 2024
2 parents 5decd0f + 94bec47 commit 08fca17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions t/001Basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ my $f3 = $a2->locate("foo/bar/permtest");
my $perm = ( ( stat($f3) )[2] & oct('777') );

SKIP: {
skip 'Permissions are too different on Microsoft Windows', 1 if ($Config{osname} eq 'MSWin32');
skip 'Permissions are too different on Microsoft Windows', 1 if ($Config{osname} eq 'MSWin32' || $Config{osname} eq 'msys');
is( $perm, oct(770), 'testing file permission inside the tarball' );
}

Expand Down Expand Up @@ -126,7 +126,7 @@ else {

SKIP: {
skip 'Cannot check permissions on a non-existent file', 1 unless $f1;
skip 'Permissions are too different on Microsoft Windows', 1 if ($Config{osname} eq 'MSWin32');
skip 'Permissions are too different on Microsoft Windows', 1 if ($Config{osname} eq 'MSWin32' || $Config{osname} eq 'msys');
is( $perm, oct(664), 'testing file permissions' );
}

Expand Down
2 changes: 1 addition & 1 deletion t/006DirPerms.t
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ok( $arch->add( "foo/foofile", $foofile ), "adding file" );
ok( $arch->write($tarfile), "Tarring up" );

SKIP: {
skip 'Permissions are too different on Microsoft Windows', 1 if ($Config{osname} eq 'MSWin32');
skip 'Permissions are too different on Microsoft Windows', 1 if ($Config{osname} eq 'MSWin32' || $Config{osname} eq 'msys');
my $tarread = Archive::Tar::Wrapper->new();
$tarread->read($tarfile);
my $loc = $tarread->locate("foo");
Expand Down

0 comments on commit 08fca17

Please sign in to comment.