Skip to content

Commit

Permalink
Add test for broken symlink (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuonglm authored and zoffixznet committed Sep 26, 2016
1 parent aec5f6e commit 01a6909
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion S16-filehandles/filetest.t
Expand Up @@ -10,7 +10,7 @@ This test tests the various filetest operators.
=end pod

plan 43;
plan 44;

# L<S32::IO/IO::FSNode/=item IO ~~ :X>
# L<S03/Changes to Perl 5 operators/The filetest operators are gone.>
Expand Down Expand Up @@ -126,4 +126,17 @@ unlink "empty_file";
}
}

# RT #129162
{
my $name = "symlink-test-source";
my $target = "symlink-test-target";
my $src = open($name, :w);
$src.close;
symlink($target, $name);
unlink $name;

ok $target.IO.l, "Broken symlink exists";
unlink $target;
}

# vim: ft=perl6

0 comments on commit 01a6909

Please sign in to comment.