diff options
Diffstat (limited to 'perl/test')
-rw-r--r-- | perl/test/symlink.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/perl/test/symlink.t b/perl/test/symlink.t index faf98e6..19cc72d 100644 --- a/perl/test/symlink.t +++ b/perl/test/symlink.t @@ -1,7 +1,7 @@ #!/usr/bin/perl use test::helper qw($_point $_real); use Test::More; -plan tests => 5; +plan tests => 6; chdir($_point); ok(symlink("abc","def"),"symlink created"); ok(-l "def","symlink exists"); @@ -10,3 +10,10 @@ chdir($_real); ok(-l "def","symlink really exists"); is(readlink("def"),"abc","really worked"); unlink("def"); + +# bug: doing a 'cp -a' on a directory which contains a symlink +# reports an error +mkdir("dira"); +system("cd dira; touch filea; ln -s filea fileb"); +is(system("cp -a dira dirb")>>8,0,"cp -a"); +system("rm -rf dira dirb"); |