sleep 2;
+my $has_link = 1;
+my $inaccurate_atime = 0;
+if (defined &Win32::IsWinNT && Win32::IsWinNT()) {
+ if (Win32::FsType() ne 'NTFS') {
+ $has_link = 0;
+ $inaccurate_atime = 1;
+ }
+}
SKIP: {
+ skip "No link on this filesystem", 6 unless $has_link;
unlink $tmpfile_link;
my $lnk_result = eval { link $tmpfile, $tmpfile_link };
skip "link() unimplemented", 6 if $@ =~ /unimplemented/;
my @b = (-M _, -A _, -C _);
print "# -MAC=(@b)\n";
ok( (-M _) < 0, 'negative -M works');
- ok( (-A _) < 0, 'negative -A works');
+ SKIP:
+ {
+ skip "Access timestamps inaccurate", 1 if $inaccurate_atime;
+ ok( (-A _) < 0, 'negative -A works');
+ }
ok( (-C _) < 0, 'negative -C works');
ok(unlink($f), 'unlink tmp file');
}