From a6e354a6145bf958701204cf3cf99c8f2ef1c0b2 Mon Sep 17 00:00:00 2001 From: Mark Glines Date: Wed, 26 Jun 2002 01:57:27 +0000 Subject: fixed the last bug I know about! --- perl/test/symlink.t | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'perl/test') 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"); -- cgit v1.2.3