Skip to content

Commit

Permalink
lstat->size returns zero on Windows
Browse files Browse the repository at this point in the history
This fixes issue dagolden#269.
  • Loading branch information
hakonhagland committed Nov 19, 2022
1 parent aee530f commit 74e55cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/filesystem.t
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,12 @@ SKIP: {
$file->spew("Hello World\n");
skip "symlink unavailable", 1 unless has_symlinks();
eval { symlink $file => $link };
ok( $link->lstat->size, "lstat" );
if ($^O eq "MSWin32") {
ok( $link->lstat->size == 0, "lstat->size returns zero on Windows" );
}
else {
ok( $link->lstat->size, "lstat->size returns nonzero" );
}
SKIP: {
skip "realpath of symlink not working correctly on Windows for perl <= 5.37.5"
if $^O eq "MSWin32" and "$]" <= 5.037005;
Expand Down

0 comments on commit 74e55cd

Please sign in to comment.