X-Git-Url: http://git.rot13.org/?p=perl-fuse.git;a=blobdiff_plain;f=test%2Fstatfs.t;h=52fa3cea846cbca5488f45a1c2d49cba1221cfab;hp=bf24bbb317657f3a60602b8eedb70548a8e96b77;hb=46d8e3d67d80054c3cc2d172e8687b78695c4ec2;hpb=2bae6f1a64e618e7889d2e7e2ac96c2e70fdd43d diff --git a/test/statfs.t b/test/statfs.t index bf24bbb..52fa3ce 100644 --- a/test/statfs.t +++ b/test/statfs.t @@ -4,10 +4,10 @@ use Test::More; use Config; use Filesys::Statvfs; -if ($^O eq 'netbsd' || $^O eq 'darwin') { - # Ignoring the f_namelen field; no such animal on OS X statfs(), and - # NetBSD's statvfs1(2) syscall doesn't seem to handle f_namelen right - # for PUFFS-based filesystems. Not our failure, and mostly irrelevant. +if ($^O eq 'netbsd') { + # Ignoring the f_namelen field; NetBSD's statvfs1(2) syscall doesn't + # seem to handle f_namelen right for PUFFS-based filesystems. Not our + # failure, and mostly irrelevant. plan tests => 6; } else { @@ -20,6 +20,6 @@ is(shift(@list),1000000,'blocks'); is(shift(@list),500000,'blocks free'); is(shift(@list),1000000,'files'); is(shift(@list),500000,'files free'); -unless ($^O eq 'netbsd' || $^O eq 'darwin') { +unless ($^O eq 'netbsd') { is(shift(@list),255,'namelen'); }