From 576c7e62d4253b199ec93e5c4fe612cb2115f454 Mon Sep 17 00:00:00 2001 From: Derrik Pates Date: Fri, 29 Jul 2011 12:39:55 -0600 Subject: [PATCH 1/1] README update, and use full path to mount when checking mounted FSes. --- README | 5 +++-- test/s/mount.t | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README b/README index 8a0d77b..3e15e9a 100644 --- 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 diff --git a/test/s/mount.t b/test/s/mount.t index 46ca258..c56fdc1 100644 --- a/test/s/mount.t +++ b/test/s/mount.t @@ -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 }; } -- 2.20.1