README update, and use full path to mount when checking mounted FSes.
authorDerrik Pates <demon@now.ai>
Fri, 29 Jul 2011 18:39:55 +0000 (12:39 -0600)
committerDerrik Pates <demon@now.ai>
Fri, 29 Jul 2011 18:39:55 +0000 (12:39 -0600)
README
test/s/mount.t

diff --git a/README b/README
index 8a0d77b..3e15e9a 100644 (file)
--- a/README
+++ b/README
@@ -78,8 +78,9 @@ unmount infrastructure is a crock.  I am not pleased with that code.
 
 While most things work, I do still have a TODO list:
 * need to sort out cleaner mount semantics for the test framework
-* determine why getattr() test on OS X/Darwin is very slow; succeeds, but
-  very slowly
+* Do getattr() test in a way that doesn't depend on sparse files, as HFS+
+  doesn't support sparse files, thus causing getattr test to take a very
+  long time.
 
 Currently tests have been attempted and succeeded on:
   * Ubuntu 10.10/amd64
index 46ca258..c56fdc1 100644 (file)
@@ -5,7 +5,7 @@ use Errno qw(:POSIX);
 use Test::More tests => 3;
 
 sub is_mounted {
-       my $diag = -e '/proc/mounts' ? `cat /proc/mounts` : `mount`;
+       my $diag = -e '/proc/mounts' ? `cat /proc/mounts` : ($^O eq 'linux' ? `/bin/mount` : `/sbin/mount`);
        return $diag =~ m{ (?:/private)?$_point };
 }