aboutsummaryrefslogtreecommitdiffstats
path: root/perl/test
diff options
context:
space:
mode:
authorMark Glines <mark@glines.org>2002-06-26 01:57:27 +0000
committerMark Glines <mark@glines.org>2002-06-26 01:57:27 +0000
commita6e354a6145bf958701204cf3cf99c8f2ef1c0b2 (patch)
tree284dd2c1c20def4a5f5f5682884ff3a61b807820 /perl/test
parentf4736e7edbf5b5d8ad7fe416ffb59c571be6989b (diff)
downloadlibfuse-a6e354a6145bf958701204cf3cf99c8f2ef1c0b2.tar.gz
fixed the last bug I know about!
Diffstat (limited to 'perl/test')
-rw-r--r--perl/test/symlink.t9
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");