4 |
|
|
5 |
my $debug = shift @ARGV; |
my $debug = shift @ARGV; |
6 |
|
|
7 |
use Test::More tests => 766; |
use Test::More tests => 770; |
8 |
use File::Slurp; |
use File::Slurp; |
9 |
use IO::File; |
use IO::File; |
10 |
|
|
129 |
|
|
130 |
ok( symlink("$to/m", "$to/s"), 'symlink' ); |
ok( symlink("$to/m", "$to/s"), 'symlink' ); |
131 |
ok( -l "$to/s", 'is symlink' ); |
ok( -l "$to/s", 'is symlink' ); |
132 |
|
|
133 |
|
ok( !symlink("fake", "$to/s"), 'symlink' ); |
134 |
|
ok( !symlink("$to/m", "fake"), 'symlink' ); |
135 |
|
|
136 |
ok( link("$to/m", "$to/l"), 'link' ); |
ok( link("$to/m", "$to/l"), 'link' ); |
137 |
cmp_ok( (stat("$to/l"))[3], '==', 2, 'l has 2 links' ); |
cmp_ok( (stat("$to/l"))[3], '==', 2, 'l has 2 links' ); |
138 |
cmp_ok( (stat("$to/m"))[3], '==', 2, 'm has 2 links' ); |
cmp_ok( (stat("$to/m"))[3], '==', 2, 'm has 2 links' ); |