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 {
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');
}