use test::helper qw($_real $_point);
use Test::More;
use Data::Dumper;
-plan tests => 28;
+plan tests => 27;
my ($a, $b) = ("$_real/wibble","$_point/wibble");
-`touch $a; sleep 1; cat $a >/dev/null`;
+`touch $a`;
is(-A "$a", -A "$b", '-A'); # 1
is(-B "$a", -B "$b", '-B'); # 2
is(-C "$a", -C "$b", '-C'); # 3
is(-w "$a", -w "$b", '-w'); # 25
is(-x "$a", -x "$b", '-x'); # 26
is(-z "$a", -z "$b", '-z'); # 27
-my (@astat, @bstat);
-@astat = stat("$a");
-@bstat = stat("$b");
-# dev and inode can legally change
-shift(@astat); shift(@astat);
-shift(@bstat); shift(@bstat);
-is(join(" ",@astat),join(" ",@bstat),"stat()");
`rm -f $a`;
}
}
}
- $reject = 0 if (system("ls $_point >&/dev/null") >> 8);
+ $reject = 1 if (system("ls $_point >&/dev/null") >> 8);
die "not properly mounted\n" if $reject;
}
1;
chdir($_point);
ok(utime(1,2,"file"),"set utime");
@stat = stat("file");
-is($stat[9],1,"atime");
-is($stat[10],2,"atime");
+is($stat[8],1,"atime");
+is($stat[9],2,"mtime");
unlink("file");