tuned testing system slightly
authorMark Glines <mark@glines.org>
Mon, 22 Apr 2002 02:52:33 +0000 (02:52 +0000)
committerMark Glines <mark@glines.org>
Mon, 22 Apr 2002 02:52:33 +0000 (02:52 +0000)
perl/test/getattr.t
perl/test/helper.pm
perl/test/utime.t

index 49eef14bd784e80f4c66c32c6ded9f5664f0ae76..6485b6e014215c13847c3104b597c9eaaab59584 100644 (file)
@@ -2,9 +2,9 @@
 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
@@ -32,11 +32,4 @@ is(-u "$a", -u "$b", '-u'); # 24
 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`;
index 3d980eca1b15c3f083b66d38483829e8feacdd59..0be9ab805f7a4d2b9e2844135261d2c910ec2f73 100644 (file)
@@ -17,7 +17,7 @@ if($0 !~ qr|s/u?mount\.t$|) {
                        }
                }
        }
-       $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;
index 030390708a09b993f5eafb47ad08da0266ae37e4..8ccefc671bbf0769bb612e6191aead5d5a2a7861 100644 (file)
@@ -8,6 +8,6 @@ system("echo frog >file");
 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");