use test::helper qw($_real $_point);
use Test::More;
use Data::Dumper;
-plan tests => 27;
+plan tests => 28;
my ($a, $b) = ("$_real/wibble","$_point/wibble");
-`touch $a`;
+`touch $b`;
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`;
#!/usr/bin/perl -w
use test::helper qw($_point $_loop $_real $_pidfile);
use strict;
-use Test::More tests => 4;
+use Test::More tests => 3;
ok(!(scalar grep(/ on $_point /,`cat /proc/mounts`)),"already mounted");
ok(-f $_loop,"loopback exists");
-ok(-x $_loop,"loopback executable");
if(!fork()) {
#close(STDIN);