/[fuse.before_github]/perl/trunk/test/symlink.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /perl/trunk/test/symlink.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 98 - (show annotations)
Tue Jan 3 16:45:51 2006 UTC (18 years, 3 months ago) by dpavlin
File MIME type: application/x-troff
File size: 548 byte(s)
subversion revision 71 commited to CVS

1 #!/usr/bin/perl
2 use test::helper qw($_point $_real);
3 use Test::More;
4 plan tests => 6;
5 chdir($_point);
6 ok(symlink("abc","def"),"symlink created");
7 ok(-l "def","symlink exists");
8 is(readlink("def"),"abc","it worked");
9 chdir($_real);
10 ok(-l "def","symlink really exists");
11 is(readlink("def"),"abc","really worked");
12 unlink("def");
13
14 # bug: doing a 'cp -a' on a directory which contains a symlink
15 # reports an error
16 mkdir("dira");
17 system("cd dira; touch filea; ln -s filea fileb");
18 is(system("cp -a dira dirb")>>8,0,"cp -a");
19 system("rm -rf dira dirb");

  ViewVC Help
Powered by ViewVC 1.1.26