Fixing ioctl on 32bit arches.
[perl-fuse.git] / test / link.t
1 #!/usr/bin/perl
2 use test::helper qw($_real $_point);
3 use Test::More;
4 plan tests => 8;
5 chdir($_point);
6 open($file, '>', 'womble');
7 print $file "hippity\n";
8 close($file);
9 ok(-f "womble","exists");
10 ok(!-f "rabbit","target file doesn't exist");
11 is(-s "womble",8,"right size");
12 ok(link("womble","rabbit"),"link");
13 ok(-f "womble","old file exists");
14 ok(-f "rabbit","target file exists");
15 is(-s "womble",8,"right size");
16 is(-s "rabbit",8,"right size");
17 unlink("womble");
18 unlink("rabbit");